Good morning,
I want to change the viewpoint from scene to scene. So I want to set in scene1:
Code:
viz.MainView.setPosition(0,0,-10)
viz.MainView.lookat(0,0,0)
If I change the scene to scene 2, then the viewpoint should be set to
Code:
viz.MainView.setPosition(0,4,-7)
viz.MainView.lookat(0,7,0)
viz.scene( 2 )
This is okay. But if I want to change back to scene1 and make
Code:
viz.MainView.setPosition(0,0,-10)
viz.MainView.lookat(0,0,0)
viz.scene( 1 )
then it does not work.
I've tested it with this
Code:
print viz.MainView.getPosition()
and I can see that the viewpoint will be changed from scene1 to scene2. But back to scene1 it does not change. Why???
Thanks!