Vizard 7 » Command Index » Vizard modules » viz » <viz:cluster>.pushMask
7.7

<viz:cluster>.pushMask

Sets the cluster mask but saves the current mask

<viz:cluster>.pushMask(  
mask  
)  
mask
The cluster mask

Remarks

This command will set the cluster mask. It will save the current mask which can be restored using <viz:cluster>.popMask.

Note: This command mostly exists for backward compatibility. It is recommended to use the <viz:cluster>.MaskedContext command instead.

Return Value

None

Example

#Only want client 1 to perform command
viz.cluster.pushMask(viz.CLIENT1)
viz.clearcolor(viz.RED)
viz.cluster.popMask()

See also

<viz:cluster>.getMask
<viz:cluster>.popMask
<viz:cluster>.setMask
<viz:cluster>.MaskedContext