Open topic with navigation
<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:
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