Vizard 7 » Command Index » Vizard objects » window » <window>.setScene
7.7

<window>.setScene

Set the scene to render in the window

<window>.setScene(  
scene  
eye = viz.BOTH_EYE  
)  
scene
A <scene> object
eye = viz.BOTH_EYE
The eye to apply the scene to. One of the following:

viz.BOTH_EYE
viz.LEFT_EYE
viz.RIGHT_EYE

Remarks

Use this command switch to a different scene in the window. When adding child objects, Vizard adds the object to the main scene by default. It is possible to instead add them to another scene.

The eye parameter controls which eye the scene will show up on. This is used when you have a stereo world and you want to display a different scene for each eye.

When running in mono, Vizard will display the scene assigned to the left eye

Return Value

None

Example

viz.MainWindow.setScene(viz.Scene2)

See also

<window>.getScene
<viz>.addScene