Script Command for control and animate slider direction, speed and min/max?

Math123 shared this question 5 months ago
Answered

How to control slider direction (increasing, increasing once, decrease etc..) and speed as well as min value and max value with command in script.

Comments (8)

photo
1

You can put variables as min, max and speed values in the settings for a slider. For example, if you have the slider n, you can define


nmin = -5

nmax = 5


nspeed = 1


and put those variables in the slider tab in the settings for n. These variables can be manipulated at will by scripts. I don't know about direction though.

photo
1

Thanks for the reply Kajak. I used this technique but i want 4 sliders for many objects, same slider i want different values of min, max, speed and direction of slider. Otherwise it required 4 slider for every single object.

photo
photo
1

1003d7e8d2d8af1a3c3301beca24a2e6

photo
1

Hello alfabeta2 ,

Is it possible with command?

photo
3

begin with an increasing slider with speed equal to speed

increase <--> speed>0

decreasing<--> speed<0

stop<--> speed=0

oscilating<--> on update script of slider with if(%0==max||%0==min,setvalue(speed,-speed))

photo
1

Thanks mathmagic. Pls share small GGB applet.

photo
2

one try

Files: foro.ggb
photo
1

Thanks to share your idea.

photo
© 2020 International GeoGebra Institute