The cull mask is used to control which nodes will be rendered by the node. When creating a custom cull mask, use the
<viz>.addNodeMask command to ensure that your cull mask does not conflict with any masks used internally by Vizard.
#Create a cull mask that won't conflict with any internal masks used by Vizard
CULL_MASK = viz.addNodeMask()
rn = viz.addRenderNode()
.
.
#Set the cull mask for the render node
rn.setCullMask(CULL_MASK)
ball = viz.add('ball.wrl')
#Remove cull mask from the balls node mask
#The ball will not be rendered by the render node
ball.setMask(CULL_MASK,mode=viz.MASK_REMOVE)