is possible that , when create point with point tool a slider start animation

alirezagholamian shared this question 4 days ago
Answered

Hi

Please help for above question?

Thanks

Comments (22)

photo
1

if you define m=constructionstep() you can run onupdatescript for m , but not only with points

if you want only for points and create other objects you need a ggbOninit global javascript

photo
1

thanks

please make ggb for your method and send

photo
photo
1

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)

photo
1

thanks @rami for your support. in this file i want create point C (with point tool) so that similar animate occur for AC vector.

photo
1

is possible to make new tool for this?

photo
photo
1

mira a ver si esto te sirve o es la herramienta de foro.ggb?

das pocas pistas sobre lo que quieres y esperas

quizas una mezcla de ambos con creacion de objetos en el javascript de n en el primer archivo

photo
1

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:


  • copy the definition of u
  • delete u
  • create u= with copy above

-------------------------------

This is an interesting problem. I'm working on it. I hope to find a solution (maybe in 1-2 days)

photo
1

I am waiting for the result

photo
photo
1

some questions:

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?

photo
1

answer for

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.

photo
photo
1

sorry

 yes ,but for each new vector occur animation lonely.

not possible: each animation has different slider or different formula with slider

photo
1

Question:

Is this feature for this applet?

photo
1

No

The main idea of the above question was how to create animation with the custom tool in ggb

photo
photo
1

sorry I must stop development until a JS Bug is corrected.

I need the function of the JS-command: ggbApplet.getValueString(<objNam>)

photo
1

Thanks Rami,

I hope the problem is solved soon.

photo
photo
1

try points with tool in attached

is this you want?

photo
1

Great!!, thanks,

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.

photo
1

thanks

script of this file is informative.

photo
photo
1

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


https://help.geogebra.org/t...

photo
1

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.

photo
photo
1

I knew

you know my preferences

no script>no javascript>no ggbOnInit

photo
1

Another possibility.

I think this variant is more general and fulfills the wish to execute script commands from a custom-tool.

© 2020 International GeoGebra Institute