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
--
Wouter Klouwen, Software Engineer
The Foundry, 6th Floor, Comms Building, 48 Leicester Sq, London WC2H LT
Tel: +442079686828 • Fax: +4420 79308906 • thefoundry.co.uk
The Foundry Visionmongers Ltd • Reg.d in England and Wales No: 4642027
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python