Good catch Jesse. :P


From: Jesse Kretschmer 
Sent: Thursday, January 30, 2014 12:02 PM
To: Nuke Python discussion 
Subject: Re: [Nuke-python] expression to switch on off in switch node


On Thu, Jan 30, 2014 at 11:55 AM, Nathan Rusch <[email protected]> wrote:

I wouldn’t bother with Python.

(frame == root.first_frame || frame == root.last_frame) ? 1 : 0


-Nathan


But this is a python list :P

However, I agree that tcl is better suited. You could even drop the ternary 
operator if you need to save some keystrokes:
frame==root.first_frame || frame == root.last_frame



--------------------------------------------------------------------------------
_______________________________________________
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