|02 February 2012||#1|
Join Date: Jul 2008
[Scripting] Set Expressions on Bezier Points
This is a Nuke/Python question. I'm quite new to Nuke, so I'm hitting a few dead-ends in my search. (Nuke 6.3v2 64bit)
The question: Does anyone know how to set an expression on the individual control points of a Bezier curve?
I am trying setExpression() but you need to include a channel. If I list the channels of my Roto, all I see is ['rgba.red', 'rgba.green', 'rgba.blue', 'rgba.alpha', 'disparityL.x', 'disparityL.y', 'disparityR.x', 'disparityR.y']. Curves and Beziers do not return any channels and they do not support addExpression().
I can use the ShapeControlPoint class to access the points and their positions, but this doesn't help me set an expression on them. (Or at least I can't find the method or syntax.)
So how do I access Roto1.curves.Bezier1.curve.0.main.x to set an expression via Python?
|02 February 2012||#2|
Join Date: Sep 2003
Thread automatically closed
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
|Thread Closed share thread|