PDA

View Full Version : Change Viewpoint in different scenes


lilio
08-26-2009, 01:24 AM
Good morning,

I want to change the viewpoint from scene to scene. So I want to set in scene1:

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

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

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 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!

farshizzo
08-28-2009, 02:56 PM
Can you post a fully functional script that replicates your problem?