Page 1 of 1

Button Toggle

Posted: 20 Jul 2012 13:55
by Lawrence
Ok, I've run out of scripting ideas. :) Can someone give me a pointer. Very simple (I suppose) thing, I just can't figure out how.

Two buttons: Stop and Play. The Play button toggles Green when on and White when off. What I want to do is set the state of the Play button to Off/White when I press the stop button.

I've tried various things like "setattribute" things with no luck. I know there's probably a really short single line script for that but, no luck figuring it out.

Thanks guys.

Re: Button Toggle

Posted: 23 Jul 2012 12:45
by fader8
I just did the same using the "switches" object. I set up one row two columns. Set the attribute to "radio". You can't label each switch, as far as I can tell, so I just put text labels above them.