Experimental:Accumulate POP
Summary
The Accumulate POP takes an attribute from the input, and creates a new attribute whose values in each point are the sum of the values in the input attribute of the previous points.
For example, if an input has 100 points, and an attribute called Steps
contains the same number, say 3 for each point, then the output attribute Scan
will contain 3, 6, and 9 for the first three points, and 300 for the last point. It is the running sum or "integral".
If you change Type to Exclusive Scan, it will not count the current point's value, so the Scan
attribute will contain 0, 3, 6 up to 297 in the last point.
The Accumulate POP can work on a point, vertex or primitive attribute. If the input is a float3, the new attribute will be float3, etc.
You can check it all with a POP to DAT.
See also: Analyze POP, Histogram POP
Parameters - Accumulate Page
attrclass
- ⊞ -
- Point
point
-
- Vertex
vertex
-
- Primitive
primitive
-
inputattr
-
scantype
- ⊞ -
- Inclusive Scan
inclusive
-
- Exclusive Scan
exclusive
-
outputattrscope
- ⊞ -
- P
P
-
- N
N
-
- Color
Color
-
- Color.i012
Color.i012
-
- Tex
Tex
-
- PointScale
PointScale
-
- LineWidth
LineWidth
-
overrideautoattr
-
newattrtype
- ⊞ -
- float
float
-
- double
double
-
- int
int
-
- uint
uint
-
- dir
dir
-
- dbl dir
ddir
-
attrnumcomps
- ⊞ -
- 1
1
-
- 2
2
-
- 3
3
-
- 4
4
-
newattrdefaultval
- ⊞ -
- New Attribute Default Value
newattrdefaultval1
-
- New Attribute Default Value
newattrdefaultval2
-
- New Attribute Default Value
newattrdefaultval3
-
- New Attribute Default Value
newattrdefaultval4
-
Parameters - Common Page
bypass
-
delinputattrs
-
Operator Inputs
- Input 0: -
Info CHOP Channels
Extra Information for the Accumulate 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: