24.08.2020, 12:32
(24.08.2020, 12:23)Daniel. Wrote: I'm not sure what are the values sent on output of the mode but I guess it is 0,1,2,3,4. Change it accordingly Then the script would looks like that
Code:12345678910111213value = event.getvalue() if (value == 0) then grp.write('1/1/1', 0) elseif (value == 1) then grp.write('1/1/1', 1) elseif (value == 2) then grp.write('1/1/1', 3) elseif (value == 3) then grp.write('1/1/1', 9) elseif (value == 4) then grp.write('1/1/1', 13) end
There is no need to create another script for something that could be done native from the widget.