Disabling asset parameters

   2951   4   0
User Avatar
Member
15 posts
Joined: July 2009
Offline
I'm wondering if this is possible.
I have made a digital asset which takes in two inputs. I would like to disable some of the parameters if nothing is plugged into its second input.
By disable I mean grey out the parameter so it cannot be used by the user - using the “Disable When” option.

Thanks
User Avatar
Member
1914 posts
Joined: Nov. 2006
Online
What I'd do is create a toggle parameter and have an expression in it that queries if there are two inputs. If there aren't it evals to off and you can have the disable when of your parms linked to that one.
Graham Thompson, Technical Artist @ Rockstar Games
User Avatar
Member
15 posts
Joined: July 2009
Offline
Thank you, that was really simple I don't know why I didn't think of that.

For anyone who reads this and wants to know more, I created a parameter and used an opninputs(“.”) expression in its default value. This will give the number of inputs and now the other parameter can be disabled if this parameter is below a certain value.
User Avatar
Staff
3456 posts
Joined: July 2005
Offline
you can also use the “Disable When” parameter on the type properties
Michael Goldfarb | www.odforce.net
Training Lead
SideFX
www.sidefx.com
User Avatar
Member
380 posts
Joined: July 2005
Offline
sweet.
{ hasinput(0) == 1 }
  • Quick Links