Corey,
You can use the ShapeControlPoint class to get their positions per frame.
/Documentation/Python/_rotopaint.ShapeControlPoint-class.html

(mind the tabs, not sure how this will work in Thunderbird)

oBez = nuke.toNode('Roto1')['curves'].toElement('Bezier1')

for eachPoint in oBez:

    print eachPoint.center.getPosition(1) # 1 represents the frame number.
    print eachPoint.featherLeftTangent.getPosition(1)


Chris Lesage

On 2/23/2012 1:00 PM, coreydrake wrote:
I've got some bezier shapes that I need to find just the xy position values of each point. However, not all the frames have keys on them. I was wondering how I can get this information similar to how we can get the information from a roto node here: http://docs.thefoundry.co.uk/nuke/63/pythondevguide/rotopaint.html


_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

_______________________________________________
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