ops, small error should be layer, not shape below

transf = layer.getTransform()

You need to access the layers inside the 'curves' of the rotonode, and yes you can copy the animation curves from the layers.

Something like this should get you started:

rotoNode = nuke.selectedNode()
rotoCurve = rotoNode['curves']
rotoRoot = rotoCurve.rootLayer

for layer in rotoRoot:
   if isinstance(layer, nuke.rotopaint.Layer):
       transf = shape.getTransform()







Hi
I am trying to put in together full code to access transform,rotate,scale for individual layers in RotoPaint, and unfortunately to stupid to make it work from pieces of info i am collecting here (or in NDK)
Can some one put full code in please?

expecting something like:
myRoto= nuke.selectedNode()
myRoto.Layer1['translate'].getValue()

and one more request please.
i will need to use copy animation, will it work in the sane way as this?
g3['blackpoint'].copyAnimations(g1['blackpoint'].animations())



--
**************************
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

Reply via email to