The last problem I had was answered perfectly :) So here I am with annother one.
In a rollout, is it possible for one sliders value to control annother sliders maximum value?
I would really appreciate any help,
cheers.
Forum topic · General Scripting
By alexholmes · 2012-03-20
The last problem I had was answered perfectly :) So here I am with annother one.
In a rollout, is it possible for one sliders value to control annother sliders maximum value?
I would really appreciate any help,
cheers.
Thanks!
alexholmes · 2012-03-20
Thank you! Exactly what I needed
sure
jos · 2012-03-20
you can set the range with
slider.range = [min,max,value]
example:
rollout roll_slidertest "slider"
(
slider sl1 "value: 0" range:[-10,10,0]
slider sl2 "value: 0" range:[-10,10,0]
slider sl3 "change max sliders" range:[0,20,10]
on sl1 changed arg do
(
sl1.text = ("value: " + arg as string)
)
on sl2 changed arg do
(
sl2.text = ("value: " + arg as string)
)
on sl3 changed arg do
(
sl3.text = (" max value: " + arg as string)
sl1.range = [-10,arg,sl1.range[3]]
sl2.range = [-10,arg,sl2.range[3]]
)
)
createDialog roll_slidertest 200 200