Go to:
Related nodes. Attributes.
The Multiply Divide utility node allows you to multiply
or divide input attributes. It has three parts --- two input
attributes, an operator that you apply to the attributes, and
an output attribute that holds the result of the operation.
All the input and output attributes have x, y, and z components;
that way you can use this node to multiply colors or other
triple-value things. If you just want to work with single values,
then just use one of the x, y, or z channels.
Note: This node does not do proper vector mathematics,
such as dot products and cross products. To do those kind
of calculations, use the Vector Product utility node.
There are four settings for the operator; Do nothing, Multiply,
Divide, and Power. They are explained below.
Let's say you have set the operator to Multiply. Then this
node does the following calculations:
outputX = input1X * input2X
outputY = input1Y * input2Y
outputZ = input1Z * input2Z
In the table below, important attributes have their names
listed in bold in the description column.
Node name | Parents | Classification | MFn type | Compatible function sets |
---|
multiplyDivide | shadingDependNode | utility/general:drawdb/shader/operation/multiplyDivide | kMultiplyDivide | kBase kNamedObject kDependencyNode kMultiplyDivide |
Related nodes
defaultRenderUtilityList
Attributes (13)
input1, input1X, input1Y, input1Z, input2, input2X, input2Y, input2Z, operation, output, outputX, outputY, outputZ
Long name (short name) | Type | Default | Flags |
---|
|
input1
(i1 )
| float3 | 0.0, 0.0, 0.0 | |
|
|
|
|
|
input2
(i2 )
| float3 | 1.0, 1.0, 1.0 | |
|
|
|
|
|
operation
(op )
| enum | 1 | |
|
|
output
(o )
| float3 | 0.0, 0.0, 0.0 | |
|
| outputX
(ox )
| float | 0.0 | | |
|
| outputY
(oy )
| float | 0.0 | | |
|
| outputZ
(oz )
| float | 0.0 | | |
|