COMP Instance 3 Page

From TouchDesigner Documentation
Jump to: navigation, search

Parameters - Instance 3 Page

Custom attributes allow arbitrary attributes to be assigned to instances, usable in a GLSL MAT. They can be accessed using TDInstanceCustomAttrib0(), TDInstanceCustomAttrib1() etc. For more information refer to Write a GLSL Material. These attributes will be ignored in other materials such as the PBR MAT.

Below you can add more parameters as you require more custom attributes. Different GPUs will have a different number of maximum custom attributes supported.

Custom Attrib OP 0 instancecustomop0 - Select a specific operator to get data from for the instance attributes below. If not specified, the the operator specified in the 'Default Instance OP' on the Instance parameter page can be used.  

Custom Attrib 0 X instancecustom0x - Select what data to use for this instance attribute, use the drop-down menu on the right to easily select from the available options.  

Custom Attrib 0 Y instancecustom0y - Select what data to use for this instance attribute, use the drop-down menu on the right to easily select from the available options.  

Custom Attrib 0 Z instancecustom0z - Select what data to use for this instance attribute, use the drop-down menu on the right to easily select from the available options.  

Custom Attrib 0 W instancecustom0w - Select what data to use for this instance attribute, use the drop-down menu on the right to easily select from the available options.  

(1) A Geometry Component can render its SOP geometry many times using CHOP samples, DAT rows, TOP pixels or SOP points, (2) An instance is an OP that doesn't actually have its own data, but rather just refers to an OP (or has an input) whose data it uses. This includes Null OPs, Select OPs and Switch OPs.

Any of the procedural data operators. OPs do all the work in TouchDesigner. They "cook" and output data to other OPs, which ultimately result in new images, data and audio being generated. See Node.