Two questions about Construction Protocol and scripting
Hi all,
I have created a rudimentary worksheet that dynamically guides students through sketching a cubic graph.
https://www.geogebra.org/st...
This is my first foray into using the Construction Protocol and breakpoints, having discovered that the Beta version of Geogebra Web supports the latter. I am massively impressed with this feature, but am wondering two things if I may:
1. Is it possible to jump to a specific step using scripting? For example, I would like to revert back to Step 1 every time the cubic expression in the input box changes, using OnUpdate.
2. Is it possible to issue a certain command when a specific step is reached? For example, the graph g is constantly animating (SlowPlot) regardless of whether it's visible or not. This means that it is possible (likely, in fact) that students will get to final step while the graph is mostly drawn. It would be nice if reaching Step 5 could somehow trigger the animation to begin.
Many thanks in advance for any responses.
Hi,
All needed commands you can find in the command-group "GeoGebra"
Point 2
ActualStep= ConstructionStep[]
Move ActualStep to the beginn of constructions protocol
Note: this new object shift all step-numbers
Note: all stepnumbers mean nativ step (not group)
ActualStep OnUpdate SetValue[b, If[ActualStep==12, 0, b]]
Point 1
.InputBox1 OnUpdate SetConstructionStep[4]
Raymond
Perfect on both counts, thanks Raymond.
(I don't know how I managed to miss SetConstructionStep[] when I was looking earlier...!)
Comments have been locked on this page!