[Scripting] Set Expressions on Bezier Points

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 02 February 2012   #1
[Scripting] Set Expressions on Bezier Points

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
 
Old 02 February 2012   #2
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.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 07:56 AM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.