Starting multiple slider animations

Richard Parkin shared this question 1 year ago
Answered

Is it possible to start (animate) sliders based on a slider value? What I am trying to accomplish is:


Slider "a" plays on button click (simple) but then I'd like slider "b" to play when "a" hits it's max, followed by "c" when "b" hits it's max.

Comments (10)

photo
1

see the scripts of attached

photo
1

Awesome, thanks!

photo
1

Without script:

Set the speed of slider "b" with the condition

if[a<a_max, 0, 1] .

photo
1

Could you please also help me with the following question?

When I click button 1, I'd like to start animation for both sliders a and b. When I click button 2, I'd like reset both sliders a and b to 0. I tried to script this way but it didn't work. Is there another way?

Thank you so much for your help.

photo
1

Button 1 OnClick scripting should contain:

StartAnimation(a)
StartAnimation(b)


Button2 scripting should contain:

StartAnimation(a,false)
StartAnimation(b,false)
SetValue(a,0)
SetValue(b,0)

photo
1

Thank you Simona!

I tried but it didn't work.

Could you please share with me your file?

Thanks,

photo
1

try attached

photo
1

Thank you alfabeta2!

That's what I need. However, I couldn't open the object properties window to see your script.

Is there a lock or something?

Could you please share with me your script?

Thank you,

photo
1

see attached : clic in CheckBox

photo
© 2019 International GeoGebra Institute