opset hscript command

   5516   8   1
User Avatar
Member
176 posts
Joined: July 2005
Offline
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?
User Avatar
Member
4262 posts
Joined: July 2005
Offline
opset -d on -r on `oppwf()`
I think
if(coffees<2,round(float),float)
User Avatar
Member
176 posts
Joined: July 2005
Offline
thanks…got it to work…

opset -d on -r on op/obj/TrainWRECK/groups_method/ground
User Avatar
Member
4262 posts
Joined: July 2005
Offline
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()`
if(coffees<2,round(float),float)
User Avatar
Member
176 posts
Joined: July 2005
Offline
thanks
opset -d on -r on `oppwf()` groups_method/ground
works great
User Avatar
Staff
3455 posts
Joined: July 2005
Offline
if it's an OTL it wont work when matched to it's definition…
Michael Goldfarb | www.odforce.net
Training Lead
SideFX
www.sidefx.com
User Avatar
Member
176 posts
Joined: July 2005
Offline
is there a way to set the definition in hscript? Then you could run that first…
User Avatar
Staff
3455 posts
Joined: July 2005
Offline
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…
Michael Goldfarb | www.odforce.net
Training Lead
SideFX
www.sidefx.com
User Avatar
Member
176 posts
Joined: July 2005
Offline
thanks for the info…very useful…
  • Quick Links