Vizard 7 » Command Index » Vizard objects » node3d » <node3d>.renderOnlyToWindows
7.7

<node3d>.renderOnlyToWindows

Renders the node to the specified windows

<node3d>.renderOnlyToWindows(  
windows  
allowRenderNodes = False  
)  
windows
A list of windows
allowRenderNodes = False
If True, the node is still allowed be rendered to render nodes, even if it is excluded from the window.

Remarks

This command will allow the node to only be rendered into the specified windows.

Return Value

None

Example

import viz
viz.go()

UpperLeftWindow = viz.addWindow(pos=(0,1.0))
UpperRightWindow = viz.addWindow()
LowerLeftWindow = viz.addWindow(pos=(0,0.2))
LowerRightWindow = viz.addWindow(pos=(0.8,0.2))

court = viz.addChild('court.ive')
ball = viz.addChild('ball.wrl',pos=[0,1.8,3])

ball.renderOnlyToWindows([UpperLeftWindow,UpperRightWindow])

See also

<node3d>.renderOnlyToRenderNodes
<node3d>.renderToAllRenderNodes
<node3d>.renderToAllRenderNodesExcept
<node3d>.renderToAllWindows
<node3d>.renderToAllWindowsExcept
<node3d>.setRenderLimit
<node3d>.renderToEye