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
transform expression not updating in OTL
3615 4 1- svenito
- Member
- 31 posts
- Joined: Aug. 2010
- Offline
- circusmonkey
- 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
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
- tamte
- Member
- 8577 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
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
FX Supervisor
Method Studios, NY
- svenito
- Member
- 31 posts
- Joined: Aug. 2010
- Offline
- tamte
- Member
- 8577 posts
- Joined: July 2007
- Offline
-
- Quick Links