Vizard 7 » Command Index » Vizard objects » node3d » <node3d>.ambient
7.7

<node3d>.ambient

Sets the ambient color property of node

<node3d>.ambient(  
[r,g,b]  
node = '' # Positional argument
op = viz.OP_DEFAULT # keyword argument
)  
[r,g,b]
Ambient 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 ambient property determines what colors from the ambient light the node will reflect. The final ambient color of the node is the ambient material color multiplied by the ambient color of the light. If the ambient color is [1,0,0] and the ambient light is [1,1,1], then the node will appear red.

Return Value

None

Example

node.ambient( [ 1, 0, 0 ] )

See also

<node3d>.color
<node3d>.emissive
<node3d>.specular