ciappo Posted September 7, 2006 Share Posted September 7, 2006 Hi guys, does anybody knows how to use the string "Disable When" into the parameter VOP ?? Because I have a parameter that I want to disable when there is a Switch VOP toggled on (by anothere parameter of course). Maybe the field Disable When is not used for that.. I'm asking because I can't find anything on the help.. Here a picture of what I'm talking about.. Thanks!!! Cheers pietro. Quote Link to comment Share on other sites More sharing options...
sibarrick Posted September 7, 2006 Share Posted September 7, 2006 sure, just put the channel name that controls the disabling and the value for when you want your channel disabled and wrap it all up in curly brackets like this {foo 0} this will disable your channel when parameter foo is 0 Quote Link to comment Share on other sites More sharing options...
ciappo Posted September 7, 2006 Author Share Posted September 7, 2006 Thank you man.... just because I'm dumb I'll post here what I've put in my Disable When field {`chs("../Switch_To_Radial/toggledef")` 0} I'm usind the channel reference because toggledef exist also for other parameter VOPs... is that correct? Thanks Again!! pietro. NOW I GOT IT (10 min later)------------------------------------------------------ sorry for the last post!!!! Now I've got it!!!! Her is what i've to write {switcher1 0} sorry again...just very newbie Thanks, Have a nice Day pietro. Quote Link to comment Share on other sites More sharing options...
Visual Cortex Lab Posted September 25, 2006 Share Posted September 25, 2006 Hey I'm on this as well ... and even if the disable when works... i dont get the desired result.. Lemme explaing... I'm looking for a solution to enable/disable the "lookat" feature using a toggle in my HDA... now I've got the Lookat parameter (where i choose the SOP to look at) that is enabled/disabled using a toggle parameter.. but the "looking at" object still "look at" the target... what I'd like is the availability to use or not a Camera Interest... cheers. p.s Have I been confusing enought? Quote Link to comment Share on other sites More sharing options...
old school Posted September 26, 2006 Share Posted September 26, 2006 Put something this in the Look At parm: `ifs(ch("toggleme") == 0, "", "/obj/light1")` -Backticks are needed in string fields to evaluate the parm. -ifs() is needed to return a string (instead of plane jane if() which returns floats) Quote Link to comment Share on other sites More sharing options...
katisss Posted September 13, 2010 Share Posted September 13, 2010 (edited) hm, h.parm("mantra_resolution").eval() menu returns int values but those dont work for disable? Nor does the string value... Is there anything special with menus? EDIT: ah, no quotes for the string value Edited September 13, 2010 by katisss 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.