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

<node3d>.unapply

Unapply a shader/texture attribute from the node

<node3d>.unapply(  
attribute  
unit = viz.AUTO_COMPUTE  
node = ''  
op = viz.OP_DEFAULT  
)  
attribute
The attribute to remove from the node. Can one of the following object types:

Texture
Shader
Uniform
Effect
EffectComposer
unit = viz.AUTO_COMPUTE
The texture unit to apply the changes to, or viz.AUTO_COMPUTE to apply changes to all available texture units.
node = ''
The name of the subnode to remove the attribute from. If the value empty then the attribute will be removed from the entire node.
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 remove a previously applied shader/texture attribute from the node.

Return Value

None

Example

# Apply an effect to the node
node.apply(effect)
.
.
.
# Remove the effect from the node
node.unapply(effect)

See also

<node3d>.apply