Vizard 8 » Command Index » Vizard objects » effect » <effect>.setEnabled
8.1

<effect>.setEnabled

Enable/Disable the effect

<effect>.setEnabled(  
mode  
)  
mode
Can be any True/False value or viz.TOGGLE to toggle the current state

Remarks

This command can be used to enable or disable an effect. Effects are enabled by default.

Return Value

None

Example

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

# Will no longer affect the model
effect.setEnabled(False)

See also

<effect>.getEnabled
<effect>.unapply
<effect>.remove
<node3d>.clearAttribute
<node3d>.clearEffectType