WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Change Viewpoint in different scenes (https://forum.worldviz.com/showthread.php?t=2232)

lilio 08-26-2009 01:24 AM

Change Viewpoint in different scenes
 
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!

farshizzo 08-28-2009 02:56 PM

Can you post a fully functional script that replicates your problem?


All times are GMT -7. The time now is 11:38 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC