Experimental:Attribute POP
Summary
The Attribute POP lets you:
- Create new attributes
- Rename attributes
- Duplicate attributes
- Delete attributes
- Create matrix attributes
When you create a new attribute, you specify:
- the name (choose from built-in pre-defined names, or create your own)
- the type (float, double, int, uint)
- the number of components in the attribute (1, 2, 3 or 4 only). Examples:
- A float type with 3 components is therefore a float3.
- A double with 2 components is a double2.
- An int with 4 components is an ivec4.
- A uint with 3 components is a uint3.
- arrays of the above, for example create a array of 8 float3, appearing as float3[8]. The array length can be anything.
- the default value for each component of the attribute
New attributes can also be matrices (done on the Matrix page), like creating a mat4x4.
Parameters - Create Page
Attribute Class
attrclass
- ⊞ -
- Point
point
-
- Vertex
vertex
-
- Primitive
primitive
-
Group
group
-
Notification if Attribute Exists
notificationifexists
- ⊞ -
- Ignore
ignore
-
- Warning
warning
-
- Error
error
-
Override if Attribute Exists
overrideifexists
-
Pre-Multiply RGB by Alpha
premultcolor
-
New Attribute
attr
-
Name
attr0name
- ⊞ -
- Custom
custom
-
- N
n
-
- Color
color
-
- Tex
tex
-
- PointScale
pointscale
-
- LineWidth
linewidth
-
Custom Name
attr0customname
-
Type
attr0type
- ⊞ -
- float
float
-
- double
double
-
- int
int
-
- uint
uint
-
- dir
dir
-
- dbl dir
ddir
-
Number of Components
attr0numcomps
- ⊞ -
- 1
1
-
- 2
2
-
- 3
3
-
- 4
4
-
Array
attr0isarray
-
Array Size
attr0arraysize
-
Value
attr0value
- ⊞ -
- Value
attr0valuer
-
- Value
attr0valueg
-
- Value
attr0valueb
-
- Value
attr0valuea
-
Parameters - Matrix Page
Matrix Attribute
mat
-
Matrix Name
mat0name
-
Rows
mat0numrows
-
Columns
mat0numcols
-
Array
mat0isarray
-
Array Size
mat0arraysize
-
Qualifier
mat0qualifier
- ⊞ -
- None
none
-
- Transform Matrix
transformMatrix
-
Parameters - Rename Page
Rename Attribute
ren
-
From Attribute
ren0from
-
To Attribute
ren0to
-
Parameters - Duplicate Page
Duplicate Attribute
dup
-
Duplicate Attribute
dup0name
-
New Attribute Name
dup0new
-
Parameters - Delete Page
Delete Point Attributes
ptdel
- ⊞ -
- *
*
-
Delete Vertex Attributes
vertdel
- ⊞ -
- *
*
-
Delete Primitive Attributes
primdel
- ⊞ -
- *
*
-
Parameters - Common Page
Bypass
bypass
-
Delete Input Attributes
delinputattrs
-
Operator Inputs
- Input 0: -
Info CHOP Channels
Extra Information for the Attribute 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: