Hi

  Before Nuke7.0v1 ( with Nuke 6.3v6 ), we were using a script to generate 
B-Splines with the SplineWarp node ( same code is also working  with the 
RotoPaint node ).
Now we have upgraded to 7.0v1, the code is failing, but only with theSplineWarp 
node ( works well with the RotoPaint). 


This is the code :

import _curveknob
warpNode = nuke.createNode('SplineWarp3')
warpCurve = warpNode['curves']
warpRoot = warpCurve.rootLayer
newshape = _curveknob.Shape(warpCurve, type="bspline")
newpoint = _curveknob.ShapeControlPoint(500,500)
newshape.append(newpoint)
warpRoot.append(newshape)

I get this error :
File "<string>", line 7, in <module>
SystemError: internal error - no curve group associated with this shape

i have tried also to import nuke.splinewarp module instead of _curveknob, but 
not much sucess :


import nuke.splinewarp as sw
warpNode = nuke.createNode('SplineWarp3')
warpCurve = warpNode['curves']
warpRoot = warpCurve.rootLayer
newshape = sw.Shape(warpCurve, type="bspline")
newpoint = sw.ShapeControlPoint(500,500)
newshape.append(newpoint)
warpRoot.append(newshape)

maybe it is related with the curveType, but I can't find my answers with the 
docs, so i wanted to know if somebody had the same problem and found a solution 
about it.


Thankyou !
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to