Jump to content
Sign in to follow this  
ciappo

"disable When"

Recommended Posts

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.

post-1372-1157653215_thumb.jpg

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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? :D

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

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 by katisss

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×