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

<node3d>.renderToAllWindows

Renders the node to all windows

<node3d>.renderToAllWindows(  
allowRenderNodes = False  
)  
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 allows the node to be rendered to all windows.

Return Value

None

Example

import viz
import vizact

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])

#render in all windows once the spacebar is pressed
vizact.onkeydown(' ',ball.renderToAllWindows)

See also

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