Search - User list
Full Version: opset hscript command
Root » Technical Discussion » opset hscript command
lynch_ppl
been trying to use an opset command in the callback parameter of an OTL…
I basically want the display and render flag of a node to be turned on with the callback..
so far I have

opset on ‘oppwf()’ geo_input

doesnt seem to work but I have a feeling its something simple I'm missing here…any suggestions?
wolfwood
opset -d on -r on `oppwf()`
I think
lynch_ppl
thanks…got it to work…

opset -d on -r on op/obj/TrainWRECK/groups_method/ground
wolfwood
The path op/obj/TrainWRECK/groups_method/ground

Is a static path. If you create another instance of your OTL or rename it, the callback will no longer work, that's why you need the `oppwd()`
lynch_ppl
thanks
opset -d on -r on `oppwf()` groups_method/ground
works great
goldfarb
if it's an OTL it wont work when matched to it's definition…
lynch_ppl
is there a way to set the definition in hscript? Then you could run that first…
goldfarb
you can use otunsync to allow editing of the OLT
then run whatever hscript you want
then otwrite to write that new definition to disc
then otload to bring that new definition into your session
then otprefer to change the definition in your session to the new file
then otsync to match the definition up again

lots of work just for a display flag….
plus doing this will change ALL the instances in your session and in every other file that uses that OTL…

better to just use switches/etc for this…
lynch_ppl
thanks for the info…very useful…
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB