Vizard 8 » Command Index » Vizard objects » node3d » <node3d>.generateEffects
8.0

<node3d>.generateEffects

Automatically generate effects on the node

<node3d>.generateEffects(  
flags = viz.EFFECTGEN_DEFAULT  
composer = None  
node = ''  
op = viz.OP_DEFAULT  
)  
flags = viz.EFFECTGEN_DEFAULT
A combination of the following effect generation flags:

Flag

Description

viz.EFFECTGEN_OSGMAXEXP

Generate effect from models created by the OSG 3ds Max exporter plugin.

viz.EFFECTGEN_CAL3D

Generate effects for Cal3d avatar models. This will enable hardware skinning on the avatar.

viz.EFFECTGEN_ATTR_TEXTURE

Generate effects using the current fixed function texture attribute state.

viz.EFFECTGEN_ATTR_COLOR

Generate effects using the fixed function color attribute state.

viz.EFFECTGEN_ATTR_ALL

Generate effects using all supported fixed function attributes. This flag is an alias for (viz.EFFECTGEN_ATTR_TEXTURE | viz.EFFECTGEN_ATTR_COLOR)

viz.EFFECTGEN_DEFAULT

The default flag is a combination of all the above flags.

composer = None
The accompanying effect composer to apply when applying a generated effect. If None, no composer will be applied.
node = ''
Name of sub-node to apply changes to
op = viz.OP_DEFAULT
Can be viz.OP_DEFAULT to use the nodes default op mode or a combination of the following values:

Op modes

viz.OP_TRAVERSE

When performing an operation on a node, traverse the entire subgraph and process all subnodes as well. This is the default value.

viz.OP_OVERRIDE

When applying attributes, have them override attributes of subnodes.

viz.OP_ROOT

When performing an operation on the node, start at the root transform of the node, instead of the model. Processing the root will include all child Vizard nodes.

Remarks

This command will generate and apply effects to the node using the specified flags. Effects will only be generated for sub-nodes that do not already have an effect applied. When an effect is generated and applied for a sub-node, the specified composer will also be applied.

The viz.EFFECTGEN_ATTR_TEXTURE flag will generate the effect based on the current fixed function texture settings. Once the effects are generated, changing the texture combine or generation settings will not have any effect on the node.

Return Value

None