Check box in 3D view


Add a text that looks like a "checkbox" to show or hide objects. Solution by Rami from the GeoGebra forum:

Script Part I

A = (0,0,0) B = (2,0,0) a = Sphere(A, B) ShowObjBool = false Checkbox = ""+If(ShowObjBool, UnicodeToLetter(9745), UnicodeToLetter(9744))+" CheckBox"

Script Part II

#In the text we need to add the following script on the click tab: SetValue(ShowObjBool, !ShowObjBool)