As Frank mentioned, you’ll need to go to TCL to do string comparisons. For what 
you’re after, you can use:

![string equal [value Shuffle_CHANNEL_SELECT.in] "rgba"]

-Nathan

From: Frank Rueter 
Sent: Tuesday, July 03, 2012 8:17 PM
To: [email protected] 
Subject: Re: [Nuke-users] expression via channels pulldown

>>- I've tried a range of syntaxes but haven't figured out how to make strings 
>>work.
try [value Shuffle1.in] instead of Shuffle.in to get the string.

>>- Also is it an intended feature to treat both rgb and rgba as input 1?  In 
>>this case its causing another exception for me to dance around. 
I'm guessing this is because rgb and rgba are references to the same layer, 
though it is inconsistent to the way other dropdown menus work.


On 4/07/12 2:17 PM, Matt McDonald wrote:

  Hello Nukesters-

  Im trying to expression a Switch node (.which) based on the pulldown from a 
Shuffle (.in).  I see that this is possible if you treat the Shuffle pulldowns 
as their numeric inputs:

  Shuffle_CHANNEL_SELECT.in==1?0:1
  (works great, with the caveat that both rgb and rgba are treated as 1)

  but I'm wondering if this can also be done by using the actual string in the 
pulldown, like 'depth', etc:

  Shuffle_CHANNEL_SELECT.in=='depth'?0:1
  (ERROR: Switch.which: missing ''' in "Shuffle_CHANNEL_SELECT.in=='depth'?0:1")

  - I've tried a range of syntaxes but haven't figured out how to make strings 
work.
  - Also is it an intended feature to treat both rgb and rgba as input 1?  In 
this case its causing another exception for me to dance around.

  Thanks in advance for any pointers!

  Matt




   

_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users




--------------------------------------------------------------------------------
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
_______________________________________________
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