Vizard 7 » Command Index » Vizard objects » node3d » <node3d>.clearAttribute
7.6

<node3d>.clearAttribute

Clear an attribute from the node

<node3d>.clearAttribute(  
attribute  
node = ''  
unit = 0  
op = viz.OP_DEFAULT  
)  
attribute
One of the following node attribute flags or a node attribute mode from the <node3d>.enable command:

viz.ATTR_TEXTURE
viz.ATTR_POLYMODE
viz.ATTR_ZOFFSET
viz.ATTR_COLOR
viz.ATTR_POINTSIZE
viz.ATTR_LINEWIDTH
viz.ATTR_DRAWORDER
viz.ATTR_TEXCOMBINE
viz.ATTR_TEXGEN
viz.ATTR_TEXMAT
viz.ATTR_DEPTHFUNC
viz.ATTR_BLENDFUNC
viz.ATTR_STENCILFUNC
viz.ATTR_SHADER
viz.ATTR_UNIFORM
viz.ATTR_CLIPPLANE
viz.ATTR_VERTEXPROGRAM
viz.ATTR_FRAGMENTPROGRAM
viz.ATTR_FOG
viz.ATTR_CULLFACE
viz.ATTR_ALPHAFUNC
viz.ATTR_BLENDCOLOR
viz.ATTR_VERTEXCOLOR
viz.ATTR_VERTEXNORMAL
viz.ATTR_EFFECT
viz.ATTR_EFFECTCOMPOSER
viz.ATTR_ALL
node = ''
The subnode to clear the attribute from
unit = 0
The texture unit to apply the changes to, or viz.AUTO_COMPUTE to apply changes to all available texture units.
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 clear an appearance related attribute from the node. The node is still susceptible to inheriting the attribute from a parent node.

Return Value

None

See also

<node3d>.clearUniform
<texture>.unapply
<shader>.unapply
<uniform>.unapply