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



_______________________________________________
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