[Sidefx-houdini-list] Problems with toggle in otl

Rick Walia rickw at the-mill.com
Tue Jan 10 12:22:29 EST 2006


Hi,

Thanks Dave and Robert for your replies. I ended up using a Switch Sop for my 
toggle as Ben suggested as my operators are in SOPs. For this case it works quite 
well.

The object display parameter that you guys suggested will help me for the next otl 
I'm working with.

Cheers,

/Rick


Johnson, Dave (Space Technology) wrote:
> If you want the toggle to switch between two different operators inside your object, you could put in a switch SOP and have the toggle control the "input" parameter of that SOP. Then set the display to the switch SOP and it will always show one or the other of its inputs.
> 
> If you want to switch between two objects (say in a DA), then use the Display parameter that Robert was mentioning. 
> 
> Then put the channel reference in the Display channel of the object to be 1 or 0, depending on the state of the toggle. If you want it to be the opposite of the toggle, then use:
>  
> (1-ch("pathtothetoggle"))
> 
> Both of these methods avoid using callbacks.
> 
> Hope this helps.







More information about the Sidefx-houdini-list mailing list