Hi,

I'm having a problem with getting an _expression_-driven Switch node to reliably update. And, I'm wondering if this a known problem or if I need to do something different with my _expression_...?

-- In my Switch node, I have an _expression_ on the "which" knob like this:

if 'SE_Preferred' in nuke.thisView():

    ret = 0

elif 'Sport' in nuke.thisView():

    ret = 1

elif 'Limited_Tech' in nuke.thisView():

    ret = 2


(Yes, I have all of the _expression_ option buttons turned on for multi-line, Python mode and using the "ret" variable...)


So, based on my selected view, the switch should change the knob - and it does... sort of. For example, if I use the views hotkeys to go through all the views, one by one, it switches, but it is always one view change behind. The updating seems to lag - like maybe the Python is being evaluated, but the switch is not updating until the next time around. And, when I render my script on the farm, the switch does not seem to be evaluating correctly at all.


Is there some way to force an update on the switch or is this just a bug...?


Thanks for any help,

Rich

 

Rich Bobo 
Senior VFX Compositor
Email:  [email protected]			
Mobile:  248.840.2665
Web:  http://richbobo.com
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

Reply via email to