Go to: Related nodes. Attributes.
The Plus Minus Average utility node allows you find the sum, difference or average of a set of input attributes. It has three parts --- two or more input attributes, an operator that you apply to the attributes, and an output attribute that holds the result of the operation.
This node actually has different input attributes for use for different kinds of data. For simple numbers, you use the Input1D attribute and get the result from Output1D. For 2d attributes, such as UV coordinates, you use the Input2D attribute and get the result from Output2D. For 3d attributes, like vectors or colors or 3d coordinates, you use the Input3D attribute and get the result from the Output3D attribute. Each of these input attributes (Input1D, Input2D, and Input3D) are special, in that they each hold a list of values, rather than just one value. Each of the elements of the list is assigned its own number. The first connection is assigned a 0, then next 1, and so on. There are four settings for the operator; No operation, Sum, Subtract, and Average. They are explained below. In the table below, important attributes have their names listed in bold in the description column.This node is MP safe
Node name | Parents | Classification | MFn type | Compatible function sets |
---|---|---|---|---|
plusMinusAverage | shadingDependNode | utility/general:drawdb/shader/operation/plusMinusAverage | kPlusMinusAverage | kBase kNamedObject kDependencyNode kPlusMinusAverage |
reverse, vectorProduct, chooser, choice, blend, blendTwoAttr, blendWeighted, blendDevice
input1D, input2D, input2Dx, input2Dy, input3D, input3Dx, input3Dy, input3Dz, operation, output1D, output2D, output2Dx, output2Dy, output3D, output3Dx, output3Dy, output3Dz
Long name (short name) | Type | Default | Flags | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
operation
(op ) |
enum | 1 | |||||||||||||||
|
|||||||||||||||||
input1D
(i1 ) |
float | 0.0 | |||||||||||||||
|
|||||||||||||||||
input2D
(i2 ) |
float2 | 0.0, 0.0 | |||||||||||||||
|
|||||||||||||||||
|
|||||||||||||||||
|
|||||||||||||||||
input3D
(i3 ) |
float3 | 0.0, 0.0, 0.0 | |||||||||||||||
|
|||||||||||||||||
|
|||||||||||||||||
|
|||||||||||||||||
|
|||||||||||||||||
output1D
(o1 ) |
float | 0.0 | |||||||||||||||
|
|||||||||||||||||
output2D
(o2 ) |
float2 | 0.0, 0.0 | |||||||||||||||
|
|||||||||||||||||
|
|||||||||||||||||
|
|||||||||||||||||
output3D
(o3 ) |
float3 | 0.0, 0.0, 0.0 | |||||||||||||||
|
|||||||||||||||||
|
|||||||||||||||||
|
|||||||||||||||||
|