transform expression not updating in OTL

   3616   4   1
User Avatar
Member
31 posts
Joined: Aug. 2010
Offline
I have an OTL (attached) that consists of a box wired into a transform. The transform translation fields have an expression to get the transform of the first input.

So wire a null into the otl (testxform) which should drive the translation of the box.

However when you wire it up, the box doesn't move along with the transform of the null.

There's a reason I need this level of nodes as I need to transform only parts of the larger subnet inside the OTL, hence the extra xform.

if you edit the script on the transform node inside the OTL and hit ‘apply’ or ‘accept’ the script gets evaluated and everything works once you do that.

Seems that until you do that the python code doesn't get executed at all.

Any ideas how I can make this work as expected?

Thanks

Attachments:
OPcustom.otl (24.8 KB)

./Sven
User Avatar
Member
2624 posts
Joined: Aug. 2006
Offline
Hi ,
I feel you have answered the question yourself , your connecting the node and nothing happens , unless you > edit > apply. What you need is an on creation do X
Im no Python expert but refer to this on my site http://www.circusmonkey.com.au/circusmonkey/Python.html [circusmonkey.com.au]


Rob
Gone fishing
User Avatar
Member
8579 posts
Joined: July 2007
Offline
that is a very hacky way to get world transform
why not using origin() hscript expression?

just put this to your parms
origin(“”, opinputpath(“../..”,0), “TX”)
origin(“”, opinputpath(“../..”,0), “TY”)
origin(“”, opinputpath(“../..”,0), “TZ”)
and change expr language back to Hscript for them
it should evaluate properly
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
31 posts
Joined: Aug. 2010
Offline
Thanks for the tips.

I actually re-worked the OTL (it wasn't done by me) to wire the input1 directly into the geo node rather than use an expression to drive the transform.

Works much better now and seems like a more sensible solution
./Sven
User Avatar
Member
8579 posts
Joined: July 2007
Offline
sure, it's always best to keep transforms at object level rather that referencing them in SOPs with expressions if it's aiming for the same result
Tomas Slancik
FX Supervisor
Method Studios, NY
  • Quick Links