Setting Animation Speed of a Slider Within Script

eugbug shared this question 2 months ago
Answered

Can I set the speed of an existing slider object within its script?

Comments (2)

photo
2

Yes,


create a variable (speed) (e.g. as slider)

create a slider (ani)

Write in the property of ani the property/slider/speed=speed

animate ani

Note: If speed is a function (or constant) and its definition is changed, then the name in property/slider/speed=speed must be set new.

photo
1

Thanks, that was obvious! I was thinking of referring to attribute as a property of the slider object.

© 2019 International GeoGebra Institute