Go to: Related nodes. Attributes.
This node provides reliable motion capture device data monitoring
and fast animation preview functionality for motion capture
(unclutched) input devices. Its designed role is to service the
device attribute attachments, (see attachDeviceAttr command),
device data monitoring control (see enableDevice command), and
"take" evaluation (see applyTake -preview).
This node blends the three possible value sources for a device
attached attribute:
- Current device data from the device attachment
- applyTake -preview data
- Other keyframe or input data from input[0]
The formulaic version of this node:
pcPrev = blender * input[0] + (1-blender)*previewData(time)
output = deviceBlend * deviceValue + (1-deviceBlend) * pcPrev
where previewData(time) represents the lookup in data of the
current preview value based on time, data, timeStamp, et. al. The
previewData value is a linear interpolation at the current time.In
order to support correct unit conversion the input and ouput
connections have angular, linear, and unitless versions. Evaluation
of an output draws input values only from the input attribute of
the matching type. The effect on the node's behavior can be seen by
substituting inputLinear and outputLinear or inputAngle and
outputAngle in the equations above for input and output,
respectively.
Notes:
While each of the inputs is a multi attribute, only the 0th entry
is ever considered in evaluating the output value.Remember that
device data is considered to be in internal unit and is not subject
to unit conversion. Thus if a rotational device channel is attached
to a linear attribute, the rotations in radian will be assigned to
the linear unit in cm.Preview data is not stored
in a saved filed.While this node could possibly be used for other
purposes than functioning as the arbiter of various device and
animation data, it is not supported for use in any other role.
Node name |
Parents |
MFn type |
Compatible function sets |
blendDevice |
blend |
kBlendDevice |
kBase
kNamedObject
kDependencyNode
kBlend
kBlendDevice |
Related nodes
plusMinusAverage, reverse, vectorProduct, chooser, choice,
blend, blendTwoAttr, blendWeighted
Attributes (14)
blender, data, deviceBlender, deviceValue, inputAngle, inputLinear, minTime, offset,
outputAngle, outputLinear, period, stride,
time, timeStamp
Long name (short name) |
Type |
Default |
Flags |
|
time
(t ) |
time |
0film |
|
|
deviceValue
(dv ) |
double |
0.0 |
|
|
deviceBlender
(db ) |
float |
0.0 |
|
|
inputAngle
(ia ) |
angle (double) |
0.0deg |
|
|
outputAngle
(oa ) |
angle (double) |
0.0deg |
|
|
inputLinear
(il ) |
distance
(double) |
0.0cm |
|
|
outputLinear
(ol ) |
distance
(double) |
0.0cm |
|
|
blender
(b ) |
float |
1.0 |
|
|
minTime
(mnt ) |
double |
0.0 |
|
|
period
(p ) |
double |
0.0 |
|
|
timeStamp
(ts ) |
doubleArray |
empty |
|
|
data
(d ) |
doubleArray |
empty |
|
|
stride
(st ) |
integer |
1 |
|
|
offset
(off ) |
integer |
0 |
|