Please help for above question?
if you define m=constructionstep() you can run onupdatescript for m , but not only with points
please make ggb for your method and send
yes it is possible with Add-Listener in Global-Java-Script.
Please send the applet (with (manual) animation with this slider) that you want to animate, when a new point is created.
Give in your applet a point with name XXX as example.
Question: The new point must by: fullFree, movableDepended, fullDepended. Which of these 3 are possible??
Note: it is not possible for me to consider the use of the point tool (yes/no)
thanks @rami for your support. in this file i want create point C (with point tool) so that similar animate occur for AC vector.
is possible to make new tool for this?
mira a ver si esto te sirve o es la herramienta de foro.ggb?
das pocas pistas sobre lo que quieres y esperas
The Problem is not to start the slider a.
But the problem is to change the animated object "u" and delete or rename of the used (new) point.
But the bigest problem is the initial-time when the applet is open.
As an attachment an intermediate result (not robust enough)
To use the intermediate result after open:
This is an interesting problem. I'm working on it. I hope to find a solution (maybe in 1-2 days)
I am waiting for the result
is A fixed and the same initial point for all vectors?
does each point P created with point tool need an animated vector AP or P is conditioned?
are all created vectors animated with same slider?
first question : yes A is fix for all new vector
second question : yes all point create with point tool
Third question : yes ,but for each new vector occur animation lonely.
yes ,but for each new vector occur animation lonely.
not possible: each animation has different slider or different formula with slider
Is this feature for this applet?
The main idea of the above question was how to create animation with the custom tool in ggb
sorry I must stop development until a JS Bug is corrected.
I need the function of the JS-command: ggbApplet.getValueString(<objNam>)
I hope the problem is solved soon.
try points with tool in attached
is this you want?
I learn 1: ConstructionStep() as alternative to addListener (this need the combination with Mode).
I learn 2: getMode()
I learn 3: need UpdateConstruction because the new object is created after object n with onUpdate
I learn 4: requires a query on type=point, so that no further vector is created for u.
Note: I think that the following command is not absolutely necessary
line 8: ggbApplet.evalCommand('Text("' + nom + '")')
But, if necessary, this can be used to delete the old point and vector.
script of this file is informative.
efectivamente la linea 8 no es necesaria
es un resto que quedó de mis intentos para controlar los puntos cuando el punto es creado en una circunferencia
tuve problemas y estuve controlando si la lectura del nombre de los puntos era correcta
para una mejor explicacion del problema que tengo ver
Regarding the (timing) GGB bug:
Inside AddListener, it works (1:1 the same code) fine. But this is not as useful as onUpdate n, because global-JS does not output error messages.
you know my preferences
I think this variant is more general and fulfills the wish to execute script commands from a custom-tool.
Comments have been locked on this page!