How to control a string menu with a toggle parameter?

   6560   1   0
User Avatar
Member
18 posts
Joined: 6月 2006
Offline
Hi,

I am wondering how I can drive the entry that is selected in a string menu of one node by a toggle (checkbox) parameter on a containing node, say an HDA or a subnet .

For example I have a subnet which contains a Reverse SOP feeding directly of the first input of the subnet. This reverse SOP has a menu parameter (labelled “Vertex”) which for example can be set to “Reverse U” or “No Change”.

I edited the parameter interface for the subnet so that it includes a toggle parameter (labelled “Reverse Curve”). This toggle should now drive the menu on the Reverse SOP so that when the toggle is checked (true state) the menu switches to “Reverse U” and when the toggle is not checked (false state) the menu of the Reverse SOP switches to “No Change”.

I tried editing the expression for the menu parameter by using

`ifs(ch(“../reversecurve”), “reverseu”, “samevertex”)`

but this didn't work. I also tried searching through the online documentation about HScript Expressions.

Any pointers in the right direction would be most appreciated.

Thank you very much for reading!

andreb
User Avatar
Member
8556 posts
Joined: 7月 2007
Offline
the string menu is only gui for integer parameter
you can drive it just by typing

ch(“../reversecurve”)

as an expression
(without ` because it is not string)
Tomas Slancik
FX Supervisor
Method Studios, NY
  • Quick Links