PDA

View Full Version : [Scripting] Set Expressions on Bezier Points


clesage
02-07-2012, 03:54 PM
Hi there,

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?

Thanks!
Chris

CGTalk Moderation
02-07-2012, 03:54 PM
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.