Nathan & Frank- Thanks a bunch. That's what I was looking for. I'm using:
![string equal [value Shuffle_CHANNEL_SELECT4.in] "rgba"] for simpler toggles, and that got me pointed to: [string match [value Shuffle_CHANNEL_SELECT3.in] "rgba"] ?0:2 etc... if I need to have a bit more control on the output. Much appreciated- Matt On Jul 3, 2012, at 11:14 PM, Nathan Rusch wrote: > 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 > <ATT00001.c>
_______________________________________________ Nuke-users mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
