Vizard 7 » Command Index » Vizard objects » window » <window>.visible
7.6

<window>.visible

This action hides or unhides a window object

<window>.visible(  
state  
mode = 0  
)  
state
Can be one of the following:
viz.ON
viz.OFF
viz.TOGGLE
mode = 0
Can be one of the following:

Visibility modes

0

Set the visibility of the entire subwindow

viz.SCREEN

Set the visibility of screen objects that belong to the scene being rendered.

viz.ORTHO

Set the visibility of the objects added to the subwindows orthographic scene.

Remarks

Use this action to hide and unhide window from view. When a window is hidden, it is removed from the scene graph and will not affect render performance. If the value of 'mode' is viz.SCREEN, then this command will control the visibility of all screen objects within this subwindow. This is usefull when your scene has GUI controls but you don't want them to show up in all subwindows.

Return Value

None

Example

window = viz.addWindow()
window.visible(viz.OFF) # Hide the window