Hi,
nuke.selectedNode().knob("disable").setExpression('frame<10')
should do the trick...
cheers
Am 3/11/13 20:37 PM, schrieb Rich Bobo:
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
Rich Bobo
Senior VFX Compositor
Armstrong-White
http://armstrong-white.com/
Email: richb...@mac.com <mailto:richb...@mac.com>
Mobile: (248) 840-2665
Web: http://richbobo.com/
"Whatever you do, you need courage. Whatever course you decide upon,
there is always someone to tell you you are wrong. There are always
difficulties arising which tempt you to believe that your critics are
right. To map out a course of action and follow it to the end,
requires some of the same courage which a soldier needs. Peace has its
victories, but it takes brave men to win them."
- Emerson
_______________________________________________
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
--
STUDIO RAKETE GmbH
Johannes Hezer, Compositing TD
Schomburgstr. 120
D - 22767 Hamburg
j.he...@studiorakete.de
Tel:+49 (0)40 - 380 375 69 - 0
Fax:+49 (0)40 - 380 375 69 - 99
------------------------------------------------------
Pflichtangaben laut Handelsgesetzbuch und GmbH-Gesetz:
STUDIO RAKETE GmbH
Schomburgstr. 120 D - 22767 Hamburg
www.studiorakete.de / i...@studiorakete.de
Geschaeftsfuehrer: Jana Bohl / Hans-Martin Rickers
Die Gesellschaft ist eingetragen im Handelregister des
Amtsgerichts Hamburg unter der Nummer HR B 95660
USt.-ID Nr.: DE 245787817
_______________________________________________
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