Open topic with navigation
<vizfx>.getComposer
Get the global effect composer
<vizfx>.getComposer( |
|
name = vizfx.DEFAULT_COMPOSER |
) |
|
name = vizfx.DEFAULT_COMPOSER
Name of the composer. The name can be any arbitrary string, which allows for multiple global composers within the scene.
Remarks
Returns the global effect composer object with the specified name. The optional name can be used to create multiple composers within the scene.
Return Value
<composer> object
Example
# Create Half-Lambert lighting model effect
effect = vizfx.addLightingModel(diffuse=vizfx.DIFFUSE_HALFLAMBERT)
# Apply to default composer (replaces default lighting model effect)
vizfx.getComposer().addEffect(effect)
See also