RadioGroup Default
-
What would be the best way to have a button in a radio group be active when the script is loaded? Currently if a button is not part of radioGroup it will remember its state each time the script loads but those that are part of a radioGroup default to off rather than recalling their previous state.
<?xml version="1.0" encoding="UTF-8"?> <Processor Type="ScriptProcessor" ID="radioGroupTest" Bypassed="0" Script="const var button1 = Content.addButton("button1", 0, 0); button1.set("radioGroup", 1); const var button2 = Content.addButton("button2", 150, 0); button2.set("radioGroup", 1); const var button3 = Content.addButton("button3", 300, 0); button3.set("radioGroup", 1); button1.setValue(1);function onNoteOn() { 	 } function onNoteOff() { 	 } function onController() { 	 } function onTimer() { 	 } function onControl(number, value) { 	 } "> <EditorStates BodyShown="1" Visible="1" Solo="0" contentShown="1" onInitOpen="1" onNoteOnOpen="0" onNoteOffOpen="0" onControllerOpen="0" onTimerOpen="0" onControlOpen="0"/> <ChildProcessors/> <Content> <Control type="ScriptButton" id="button1" value="0"/> <Control type="ScriptButton" id="button2" value="0"/> <Control type="ScriptButton" id="button3" value="0"/> </Content> </Processor>
-
Yes, that's strange. I'll check it out.
-
did anyone ever figure this out? My buttons default to off.