Thank you Deke. I'm wondering if you could offer a bit more hand-holding?

We are digging into /plugins/nukescripts/trackerlinkingdialog.py and it seems that this script deals with creating the UI that applies the expression, but I can't find the place in the script where it references what the expression is being applied to.

So I assume that it is a selection context, right? So I am still stuck on how to find the syntax to access the point directly.

Ultimately, our goal is to set an expression on each point (and handle and feather) of the Bezier on each of the attributes that appears in the "Add Expression" dialog. Is "Add Expression" a script that I can reference somewhere to see how they build up the list of entries?

The other tangle-up is that the entries in the "Add Expression" dialog don't line up with the structure of the ShapeControlPoint class, so I am not sure how I'll iterate on the points of the Bezier.

Thanks again,
Chris Lesage, FrimaFX

On 2/9/2012 2:24 PM, Deke Kincaid wrote:
I would look at the trackerlinkingdialog.py as a reference.  Since it
is doing this through the gui when you right click on a roto point>
link>  tracker01>  track 1

/plugins/nukescripts/trackerlinkingdialog.py

-deke

On Thu, Feb 9, 2012 at 10:15, Chris Lesage<[email protected]>  wrote:
Hi there,

Does anyone know how to assign an expression to the control points of a
Bezier curve using Python?

Put another way, I'm searching for the Python command to set an expression
on Roto1.curves.Bezier1.curve.0.main.x as seen in the expression editor when
you manually add an expression. I'm fairly new to Nuke/Python, so apologies
if I am missing something obvious.

- I have explored setExpression() but it works on knobs only as far as I
understand, and if the points are inside ['curves'] I can't find the syntax
to access them.
- I can fully access the points and their positions using the
ShapeControlPoint class. But this class doesn't offer any clues on how to
set an expression on them.
- I've been through the entire tutorial on
http://docs.thefoundry.co.uk/nuke/63/pythondevguide/rotopaint.html but the
answer proves elusive.

Thank you,
Chris Lesage, FrimaFX

_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python


_______________________________________________
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