Go to: Related nodes. Attributes.
This is the unit conversion node. It gets inserted between two nodes when a connection is made between numeric attributes that are of different unit types. The purpose of the unit conversion node is to ensure that "1" in the unit of the attribute at the source end of the connection is equivalent to "1" in the unit of the attribute at the destination end of the connection, in the current user units at the time of connection.
For example, if a connection is made between transform1.translateX and transform2.rotateX, and the current user units are centimeters for linear, and degrees for angle, then when transform1.translateX is 1 cm, transform2.rotateX is 1 degree. If the linear units are then changed to meters, then when transform1.translateX is set to 1 (i.e. 100 cm), transform2.rotateX will have the value 100 degrees.Node name | Parents | Classification | MFn type | Compatible function sets |
---|---|---|---|---|
unitConversion | dependNode | utility/general | kUnitConversion | kBase kNamedObject kDependencyNode kUnitConversion |
holdMatrix, passMatrix, distanceBetween, timeToUnitConversion, unitToTimeConversion
conversionFactor, input, output
Long name (short name) | Type | Default | Flags | ||
---|---|---|---|---|---|
input
(i ) |
Generic | n/a | |||
|
|||||
output
(o ) |
Generic | n/a | |||
|
|||||
conversionFactor
(cf ) |
double | 1.0 | |||
|