Each control point has both the source and destination attributes. The
confusing part is that the naming of those attributes makes more sense for
a standard roto shape.
So, your source curve is:
controlPoint.center
and the dest curve is:
controlPoint.featherCenter
Also, if you're getting the position data out of each attribute, keep in
mind that the dest points are stored as an offset relative to the src
point, instead of an absolute position.
Have a look at the output of this:
node = nuke.selectedNode()
curves = node['curves']
sourcecurve = curves.toElement('Bezier1')
for p in sourcecurve:
print p.center.getPosition(nuke.frame()),
p.featherCenter.getPosition(nuke.frame())
Hope that helps.
Cheers,
Ivan
On Wed, Dec 14, 2011 at 4:21 PM, Magno Borgo <[email protected]> wrote:
> **
> Hello!
>
> I trying to figure out how to access the *control points *of the* **
> destination* curves of the SplineWarp node via python.
>
> The points of the source curves are easy:
>
> node = nuke.selectedNode()
>
> curves = node['curves']
>
> sourcecurve = curves.toElement('Ellipse1')
>
>
> With sourcecurve[0], sourcecurve[1], etc i can access each control point.
>
>
>
> Any help?
>
>
> --
> **************************
> Magno Borgo
>
> www.borgo.tv
> www.boundaryvfx.com
>
> _______________________________________________
> Nuke-users mailing list
> [email protected], http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
>
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users