I have a scene with two different PlotCubes, which have to be displayed individually. What is the best procedure to hide and show the PlotCubes. I have tried with remove, but this seems to alter the PlotCube-objects.
The code-lines are:
IlPanel1.Scene.add(PlotCube1)
IlPanel1.Scene.add(PlotCube2)
Now both cubes are visible. Now I want to show only PlotCube2
:
IlPanel1.Scene.Remove(PlotCube1)
IlPanel1.Scene.add(PlotCube2)
For switching back to PlotCube1:
IlPanel1.Scene.Remove(PlotCube2)
IlPanel1.Scene.add(PlotCube1)
But this does not work. The remove statement seems to delete the whole object. Is there a way to add/remove elements as LinePlots, SurfacePlots, PlotCubes without affecting the original object?