Mcronin Posted January 29, 2004 Share Posted January 29, 2004 This should be any easy question. I have a paramter in VOPS I want disabled when a certain toggle variable is false. What's the proper way to format the text in the "Disable When" field of the parameter VOP? Quote Link to comment Share on other sites More sharing options...
Dries Posted January 29, 2004 Share Posted January 29, 2004 {parametername value} eg: {MyToggle 0} You can have several of these pairs. Quote Link to comment Share on other sites More sharing options...
Mario Marengo Posted January 29, 2004 Share Posted January 29, 2004 {parametername value}eg: {MyToggle 0} You can have several of these pairs. Just to add what Dries said: Pairs inside a single {} block are ANDed, and different blocks are ORed. So: { a 1 } { b 2 } { str "hello" } will disable if: a==1 OR b==2 OR str=="hello" and { a 1 str "hello" } { b 2 } will disable if: (a==1 AND str=="hello") OR b==1 Make sense? Quote Link to comment Share on other sites More sharing options...
Mcronin Posted January 30, 2004 Author Share Posted January 30, 2004 Crystal clear, thanks fellers. Quote Link to comment Share on other sites More sharing options...
hoknamahn Posted January 30, 2004 Share Posted January 30, 2004 Is it possible to disable interface element when nothing connected to second input of custom op? I have an idea. We can connect Point SOP to second input and use something like if(!$PTNUM) { // nothing connected ... } else { // something connected ... } But this method looks not clear 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.