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

<node3d>.setUniformInt

Apply an integer uniform value to the node

<node3d>.setUniformInt(  
name  
value  
node = ''  
op = viz.OP_DEFAULT  
)  
name
Uniform name
value
A single int object or a list of 1-4 int objects.
node = ''
The subnode to apply the uniform 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

This command will apply an integer shader uniform to the node, set to the specified values.

Return Value

None

Example

mode.setUniformInt('MyInt',5)

See also

<node3d>.setUniformBool
<node3d>.setUniformFloat
<node3d>.clearUniform
<node3d>.apply
<viz>.addUniformBool
<viz>.addUniformFloat
<viz>.addUniformInt
<viz>.addUniformMatrix