Open topic with navigation
<composer>.addEffect
Add an effect to the composer
<composer>.addEffect( |
|
effect |
) |
|
effect
An <effect> object or list of <effect> objects
Remarks
Add the specified effects to the composer. The effects will be applied to all nodes the composer is applied to.
If an effect of the same type is already contained in the composer effect list, then the specified effect will replace it.
If an effect of the same type is applied directly to a node, then it will take precedence over the specified effect.
Return Value
None
Example
composer = viz.addEffectComposer('composer.vizfx')
model.apply(composer)
# The effect will affect the model
effect = viz.addEffect('effect.vizfx')
composer.addEffect(effect)
See also