Support for "Preset menu".(from this post
viewtopic.php?f=42&t=33563#p132370 )
A preset menu can currently be implemented using the "Choice" widget, but the chosen preset values are not shown in the interface.
This proposal is for the sliders and other widgets to respond to the values selected in a "Preset" widget.
For example, if there are 2 sliders, the preset menu could hold values for each of those inputs. When a preset is selected, each of the sliders would change automatically to the value allocated by the preset. This would probably require that the choice widget was extended to hold value pairs.
Rather than just:
- Code: Select all
;control Variable "Select a preset from the list" choice "A,B,C" 0
there could be something like:
- Code: Select all
;control ListVariable "Select a preset from the list" preset "A,B,C" (-24 2.0)(-12 1.0)(-6 0.0)
;control varX "Input X" int "" (ListVariable 0) -48 0
;control varY "Input Y" real "" (ListVariable 1) 0.0 10.0
Where
varX takes it's value from the 0th element of
ListVariable and
varY takes it's value from the next element.
If the values in
ListVariable change (due to a different preset being selected) then controls
varX and
varY respond to the change in real time.