Thanks!

Rich




On Mar 11, 2013, at 3:47 PM, chris <ze.m...@gmx.net> wrote:

> hiya,
> 
> you've got the right knob name, but you have to use setExpression instead, 
> like:
> 
> w = nuke.createNode("Write")
> w.knob('disable').setExpression('frame<10')
> 
> hope that's what you're after
> ++ chris
> 
> 
> 
> On 3/11/13 at 8:37 PM, richb...@mac.com (Rich Bobo) wrote:
> 
>> Hi,
>> 
>> In Python, how do I set an expression on the disable knob of a node?
>> 
>> If I do something like this…
>> 
>> w = nuke.createNode("Write")
>> w.knob('disable').setValue('frame<10')
>> 
>> ...the Write node is created as "disabled" with an X through it. What I 
>> want, of course, is the string added as a conditional expression for the 
>> disable knob.
>> 
>> I can't figure out how to address the expression field. Usually, I can hover 
>> over a field and get a popup with the name, but not with the expression 
>> field input…
>> 
>> 
>> Thanks for any help,
>> Rich
> 
> _______________________________________________
> Nuke-python mailing list
> Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

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

Reply via email to