steven Posted May 18, 2010 Share Posted May 18, 2010 I accidentally posted this in general chat, but it belongs here... Sorry for the double-double. Isn't there syntax shortcuts to an expression like this: $F == 50 || $F == 76 || $F == 114 || $F == 123 || $F == 154 || $F == 196 Yes? I thought it was something like: $F == 50:76:114:123:154:196 but I might be thinking of something I used in a different app. Quote Link to comment Share on other sites More sharing options...
sam.h Posted May 19, 2010 Share Posted May 19, 2010 I would just use python: hou.intFrame() in [234,2,34,23,4,345,234] Quote Link to comment Share on other sites More sharing options...
mawi Posted May 19, 2010 Share Posted May 19, 2010 You can try strmatch(). strmatch("50,76,114,123,154,196",$F) Quote Link to comment Share on other sites More sharing options...
steven Posted May 19, 2010 Author Share Posted May 19, 2010 Thanks! using strmatch() that way is perfect for my rant. Nice idea, and the use of python only comes to mind when someone reminds me that it can be more practical. Otherwise, I tend to use hscript as a reflex. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.