Blend POP
Summary[edit]
The Blend POP lets you blend together an attribute that occurs in all of it input POPs, such as the P attribute of all the inputs.
There are at least 8 blend types. The simplest blend types will do operations like average an attribute of all the inputs, or take the maximum, minimum, sum or product of all the inputs for one attribute.
The more complex blend types will mix based on a Blend Input factor (often a number between 0 and 1) for each input.
You can specify more than one point attribute, more than one vertex and more than one primitive attribute to blend at the same time.
You can get blend weights from attributes of the input POPs.
The Blend POP's architecture for handling multiple inputs is similar to the Attribute Combine POP.
Per-point mapping of parameters - The Random POP has a Map page, which allows every point to get a different value for the Blend Input weight parameter. In this mechanism, a separate attribute in the input contains values that override (or add to / multiply by) the parameter value. See Mapping POP Attributes to Parameters.
Parameters - Blend Page
blendtype - ⊞ - The Nth point of each input is blended according to this menu. The first group are simple blends, the last group depends on the weight of each input.
- Off
off-
- Average
avg-
- Add
add-
- Multiply
mul-
- Minimum
min-
- Maximum
max-
- Differencing
differencing-
- Proportional
proportional-
- Proportional Smoothed
proportionalsmoothed-
lengthmismatchnotif - ⊞ - Length mis-match motification action.
- Ignore
ignore-
- Warning
warning-
- Error
error-
- Length Mismatch
lengthmismatchnotif-
- Length Mismatch Action
lengthmismatchaction- Specify which attribute values to use when sampling outside of the input range.
weightchop - Instead of the blend weights coling from parameters, they can come from a CHOP, wither one weight per channel, or one weight per sample.
pointattrscope - ⊞ - The Point attribute scope to blend.
- *
*-
primattrscope - ⊞ - The Primitive attribute scope to blend.
- *
*-
vertattrscope - ⊞ - The Vertex attribute scope to blend.
- *
*-
input - Start of Sequential Parameter Blocks managing the inputs of the POP.
input0pop - Input POPs for the current sequence block.
input0weight - The weight for the current input.
Parameters - Map Page
map - Start of Sequential Parameter Blocks for attribute-to-parameter mapping.
map0op - Source OP for parameter mapping. The default of _in0 means the input POP.
map0element - The attribute (or component of an attribute) that will be mapped to a parameter per-point.
map0parm - ⊞ - Parameter on the current POP that will be mapped from the Element (the attribute).
- input0weight (Blend Input)
input0weight-
map0combineop - ⊞ - Combine operation for attribute value with parameter value.
- Set
set-
- Multiply
mult-
- Add
add-
Parameters - Common Page
bypass - Pass through the first input to the output unchanged.
freeextragpumem - Free memory that has accumulated when output memory has grown and shrunk.
delinputattrs - Only output which attributes you specify in this POP - helps isolate attributes into a separate branch.
Operator Inputs
- Input 0: -
Info CHOP Channels
Extra Information for the Blend POP can be accessed via an Info CHOP.
Common POP Info Channels
Common Operator Info Channels
- total_cooks - Number of times the operator has cooked since the process started.
- cook_time - Duration of the last cook in milliseconds.
- cook_frame - Frame number when this operator was last cooked relative to the component timeline.
- cook_abs_frame - Frame number when this operator was last cooked relative to the absolute time.
- cook_start_time - Time in milliseconds at which the operator started cooking in the frame it was cooked.
- cook_end_time - Time in milliseconds at which the operator finished cooking in the frame it was cooked.
- cooked_this_frame - 1 if operator was cooked this frame.
- warnings - Number of warnings in this operator if any.
- errors - Number of errors in this operator if any.
TouchDesigner Build:
| POPs |
|---|
| • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • |