Automatically generate effects on the node
<node3d>.generateEffects( | |
flags = viz.EFFECTGEN_DEFAULT | |
composer = None | |
node = '' | |
op = viz.OP_DEFAULT | |
) |
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. |
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. |