Activating 3D View

PGvdVeen shared this question 4 years ago
Answered

There are applets needing a 'plain' introductionary page and after activating a menu_button or menu+slider continuing with 3D view.


Is it possible to control the visibility of Graphics2 and/or 3D Graphics View with a script?

Comments (6)

photo
1

I think that SetActiveView command can be useful.

Here it's the wiki link: http://www.geogebra.org/wik...

photo
1

Thanks but SetActiveView makes it just 'Active'. I am looking for a way to Show/Hide 3D by scripting.

photo
1

Ofcourse I have visited the Wiki. Without result.

photo
1

You can try

SetPerspective["GT"] or SetPerspective["5"] to enable 3D

SetPerspective["G"] to disable 3D

To make it work online it is necessary that in the initial state the applet is either showing multiple views or has visible toolbar or has right-click menu enabled.

photo
1

I defines two buttons and I am now able to show and hide the 3D Graphics.

But now the size of Graphics2 and 3D Graphics window is lost.


The purpose is:

A control windows in Graphics2, an explanatory text in Graphics1 and after pressing the button, one sees 3D Graphics.

How can I control the size of a window?

© 2020 International GeoGebra Institute