Great, that will definitely work.

Is there any way to actually get the "type" of an existing shape?

Many Thanks!



On 28/02/2012 14:40, Magno Borgo wrote:
When I create a Rotopaint Shapes via Python scripting, the curve
defaults to Bezier. How can I change that to B-spline?
 From my research I think i should set the class CurveType somewhere,
but I can't find where exactly.

I'm not entirely sure this is actually documented..

rotoknob = nuke.toNode('RotoPaint1')['curves']
shape = rotoknob.toElement('Bezier1')
curve = shape.evaluate(0, frameNum) >> curve returns the CubicCurve, but
I can't access/set the CurveType on it?

This cooks the animated tree at a particular frame. This should be treated as a constant object and not changed.

If you want to create a new BSpline you can just create a new shape and pass it, e.g:
    s = rotoknob.Shape(type="bspline")

HTH



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