<viewpoint>.setScene

This action sets the scene of the viewpoint

 

<viewpoint>.setScene(
    scene    
    eye = viz.BOTH_EYE    

)

 

scene

A scene object or number


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 (scene graph). When adding child objects to the scene graph, VIZ adds new object to scene 1 by default. It is possible to instead add them to any one of 6 scenes.

The eye parameter contols 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.

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

Return Value

None

Example

viz.MainView.setScene(3)