I love Nathan's expression. Thanks Nathan!. Also, Thanks John & Jesse for helping.
Cheers, *Jason Phong Nguyen* *Visual Effects Composito*r (310) 893-3455 www.jasonpnguyen.com <http://jasonpnguyen.com/> On Thu, Jan 30, 2014 at 12:02 PM, Jesse Kretschmer <[email protected]> wrote: > > 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
