Button Command (ggb script or JS script) for action on selected objects)
Need help with this.
I want student to mouse select a disc (object is a circle). Then click on button(s)
(a) delete the selected disc (1, -1, x, -x discs)
(b) replace with another disc of opposite sign .
Can't find solution to implement using Geogebra script.
2nd problem : I have generated new discs using counters for each type of discs
d1n, dneg1n, dxn,, dnegxn numerical variables to generate unique discs for (1, -1, x, and -x)
But after deletion the acccumulated values of d1n, dneg1n, dxn,, dnegxn are not reduced.
Can possible help me solve how to delete the unwanted numbers?
Use lists for d1n, dneg1n, dxn,, dnegxn?
Thanks in advance.