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_CLIPPLANE
viz.ATTR_VERTEXPROGRAM
viz.ATTR_FRAGMENTPROGRAM
viz.ATTR_FOG
viz.ATTR_CULLFACE
viz.ATTR_ALPHAFUNC
viz.ATTR_BLENDCOLOR
viz.ATTR_VERTEXCOLOR
viz.ATTR_ALL
node = ''
The subnode to clear the attribute from
unit = 0
If clearing a texture attribute, this specifies which texture unit to clear it from.
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. |
This command will clear an appearance related attribute from the node. The node is still susceptible to inheriting the attribute from a parent node.
None
<node3d>.clearUniform
<multimedia:image>.unapply
<shader>.unapply
<uniform>.unapply