Vizard 8 » Command Index » Vizard objects » node3d » <node3d>.specular
8.1

<node3d>.specular

Sets the specular property of the node

<node3d>.specular(  
[r,g,b]  
node = '' # Positional argument
op = viz.OP_DEFAULT # keyword argument
)  
[r,g,b]
The specular color
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

The specular property determines what color the highlight (a.k.a the reflection of a light on a model) will be.

Return Value

None

Example

node.specular( [1, 1, 1] )

See also

<node3d>.ambient
<node3d>.color
<node3d>.emissive
<node3d>.shininess