Vizard 7 » Command Index » Vizard objects » effect » <effect>.unapply
7.7

<effect>.unapply

Remove the effect from all nodes and composers

<effect>.unapply(  
flags = viz.UNAPPLY_ALL  
)  
flags = viz.UNAPPLY_ALL
A combination of the following unapply flags:

Flag

Description

viz.UNAPPLY_NODE

Remove the effect from all previously applied nodes.

viz.UNAPPLY_COMPOSER

Remove the effect from all previously applied composers.

viz.UNAPPLY_ALL

An alias for (viz.UNAPPLY_NODE | viz.UNAPPLY_COMPOSER).

Remarks

This command can be used to remove the effect from all applied nodes or composers, depending on the specified flags.

Return Value

None

Example

effect = viz.addEffect('effect.vizfx')
model.apply(effect)
.
.
.

# Will no longer affect the model
effect.unapply()

See also

<effect>.getEnabled
<effect>.setEnabled
<effect>.remove
<effect>.getRemoveFlags
<effect>.setRemoveFlags
<node3d>.clearAttribute
<node3d>.clearEffectType