DAT to POP
Summary
The DAT to POP converts DAT tables into POP geometry. Columns can be used to create attributes, primitives, groups, and dimensions, with each column providing the data needed for construction. The table must be structured as you get with POP to DAT, though for DAT to POP you don't need an index column as it is automatically implied.
The column headers need to be in the usual POP form. Vectors (like float3) must be expressed as one column per component of the vector, with headings, for example, P(0) or Color(3). Arrays components must be in MyArray[0] etc form.
Attributes can be generated automatically from the DAT’s column names. They can also be generated manually using sequential block. In each sequential block, you need to specify an attribute to create. You can use ? in P(?) to specify that columns P(0), P(1) and P(2) will form a float3 vector P.
Parameters - Points Page
pointsdat - DAT containing point attributes.
createpointprim - Enables creation of point primitives if no Primitive DAT is provided
cnvrtallpointcols - ⊞ - Toggles automatic attribute creation from column names
- Convert All Excluding
cnvrtallpointcols- Toggles automatic attribute creation from column names
- Exclude Columns
excludepointcols- Columns to ignore when automatically converting to attributes
pointgroupnamescol - Column containing the group information
attr - Start of Sequential Parameter Blocks to create new attributes.
attr0columnstype - ⊞ - Specifies the columns selection method.
- Name
name-
- Number
number-
attr0columns - The pattern of DAT columns to convert to an attribute.
attr0outputscope - ⊞ - Name of attribute to output (can choose components of attribute), can choose from menu.
- P
P-
- N
N-
- Color
Color-
- Color.rgb
Color.rgb-
- Tex
Tex-
- PointScale
PointScale-
- LineWidth
LineWidth-
- Tex.i01
Tex.i01-
attr0overrideauto - Whether to override the kind of attribute automatically created based on the POP input and parameters. Allows to specify manually the type and number of components of the new attribute.
attr0type - ⊞ - Determines the type.
- Attribute Type
attr0type-
- Components
attr0numcomps- The number of components in the new custom attribute.
attr0isarray - ⊞ - Attribute is an array, for example 5 float3 values is an array of size 5.
- Array
attr0isarray-
- Array Size
attr0arraysize- Number of elements in the array.
attr0arraysize - Number of elements in the array.
Parameters - Primitives Page
primitivesdat - DAT containing primitives and the primitive attributes.
primtype - ⊞ - Sets the primitive type source
- From Column
fromcolumn- Sets the primitive type from a specific DAT columns
- Point Primitives
points- Sets the primitive type to points
- Lines
lines- Sets the primitive type to lines
- Triangles
triangles- Sets the primitive type to triangles
- Quads
quads- Sets the primitive type to quadrilaterals
- Line Strips
linestrips- Sets the primitive type to line strips
primtypecol - Column that contains the primitive type. Accepted values in that column are point, line, triangle, quad and linestrip.
primvertices - Column that contains the primitive vertex indices
cnvrtallprimcols - ⊞ - Toggles automatic attribute creation from column names
- Convert All Excluding
cnvrtallprimcols- Toggles automatic attribute creation from column names
- Exclude Columns
excludeprimcols- Columns to ignore when automatically converting to attributes
primgroupnamescol - Column containing the group information
primattr -
primattr0columnstype - ⊞ - Specifies the columns selection method.
- Name
name-
- Number
number-
primattr0columns - The pattern of DAT columns to convert to an attribute.
primattr0outputscope - ⊞ - Name of attribute to output (can choose components of attribute), can choose from menu.
- N
N-
- Color
Color-
- Color.rgb
Color.rgb-
- Tex
Tex-
- Tex.i01
Tex.i01-
- PointScale
PointScale-
- LineWidth
LineWidth-
primattr0overrideauto - Whether to override the kind of attribute automatically created based on the POP input and parameters. Allows to specify manually the type and number of components of the new attribute.
primattr0type - ⊞ - Determines the type.
- Attribute Type
primattr0type-
- Components
primattr0numcomps- The number of components in the new custom attribute.
primattr0isarray - ⊞ - Attribute is an array, for example 5 float3 values is an array of size 5.
- Array
primattr0isarray-
- Array Size
primattr0arraysize- Number of elements in the array.
Parameters - Vertices Page
verticesdat - DAT containing vertex attributes.
cnvrtallvertcols - ⊞ - Toggles automatic attribute creation from column names
- Convert All Excluding
cnvrtallvertcols- Toggles automatic attribute creation from column names
- Exclude Columns
excludevertcols- Columns to ignore when automatically converting to attributes
vertattr -
vertattr0columnstype - ⊞ - Specifies the columns selection method.
- Name
name-
- Number
number-
vertattr0columns - The pattern of DAT columns to convert to an attribute.
vertattr0outputscope - ⊞ - Name of attribute to output (can choose components of attribute), can choose from menu.
- N
N-
- Color
Color-
- Color.rgb
Color.rgb-
- Tex
Tex-
- Tex.i01
Tex.i01-
- PointScale
PointScale-
- LineWidth
LineWidth-
vertattr0overrideauto - Whether to override the kind of attribute automatically created based on the POP input and parameters. Allows to specify manually the type and number of components of the new attribute.
vertattr0type - ⊞ - Determines the type.
- Attribute Type
vertattr0type-
- Components
vertattr0numcomps- The number of components in the new custom attribute.
vertattr0isarray - ⊞ - Attribute is an array, for example 5 float3 values is an array of size 5.
- Array
vertattr0isarray-
- Array Size
vertattr0arraysize- Number of elements in the array.
Parameters - Details Page
detailsdat - DAT containing detail attributes.
Parameters - Dimensions Page
dimensionsdat - DAT containing dimensions.
dimcol - Column containing the dimension information
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.
Info CHOP Channels
Extra Information for the DAT to 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: