Take a look on some of my scripts, there are some funcions in there to traverse the roto tree and bake the parent layers transforms.
http://www.nukepedia.com/python-scripts/misc/bakerotoshapestotrackers/
http://www.nukepedia.com/python-scripts/misc/rotopainttosplinewarp/
Hello there,
I'm trying to get the absolute position of a point in the rotoshape,
if I use this code
node = nuke.toNode('Roto1')
rotoCurve = node['curves'].toElement('Bezier1')
rotoPoint = 0 # point I want to get the position
f = 1001 # frame where I want to get the position
x = rotoCurve[rotoPoint].center.getPosition(f)[0]
y = rotoCurve[rotoPoint].center.getPosition(f)[1]
it works only if the Layer on top of the Shape is not animated,
My question is :
how can I get the X & Y position of the point if the layer is animated on top of the shape??
Thanks,
Marco
--
**************************
Magno Borgo
www.borgo.tv
www.boundaryvfx.com
Magno Borgo
www.borgo.tv
www.boundaryvfx.com
_______________________________________________ Nuke-python mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
