Problem: controlling the visibility of xOyPlane
New
Geogbra classic 5:
Situation: In my applet I want the xy-plane of the 3D-view to start without the xy-plane.
Problem: After using the javascript command ggbApplet.setVisible("xOyPlane", false) the xy-Plane disappears correctly, but after that it cannot be made visible by using the context menu. I MUST use javascript to make it visible again with the command ggbApplet.setVisible("xOyPlane", true).
Is there a way to hide the xy-plane in javascript or Geogebra script without disabling the context menu ability to switch the xy-plane's visibility on again?
I tried ggbApplet.evalCommand("SetVisibleInView(xOyPlane,-1,true)") as well, but it seems to have no effect at all.
try with ggb script in a buttom
setvisible(xOyPlane,-1,a)
setvalue(a,¬a)
being a a boolean
do not use the button of menu, it seems a supercommand. when you use the button of menu for hiding you must to use the button of menu for showing
PD: I think there is a bug. if you use the script button and the button of view menu GG shows two xOyPlanes each one controled with different button
try saving the work with hided plane and use only the menu button for hiding/showing the plane (so simple)
lo siento, me veo incapaz de seguir y entender tal cantidad de javascripts que se llaman unos a otros con tal red de llamadas internas
lo más que he podido conseguir con una instruccion en el botón grafik es lo que se ve en esta copia del trabajo en la ultima linea del script. no sé si debe haber alguna variable que controle la aparición del plano; pero, como digo yo soy incapaz de imaginarlo. espero que alguien con más habilidad para java que la mía pueda hacerlo
https://www.geogebra.org/m/jmtzmh3t
pienso que GG no guarda la configuración de las ventanas que están no visibles en el momento de guardar el archivo, así que creo que la solución es guardar o compartir el archivo con todas las ventanas necesarias abiertas y en el inicio usar setPerspective() para dejar visibles las ventanas según cómo queramos verlas en realidad si queremos verlas de una forma que no sea la standar de inicio de GG
Comments have been locked on this page!