Difference between revisions of "Attribute Class"

From Derivative
Jump to navigation Jump to search
(Attribute Class Auto Create)
 
(Attribute Class Auto Create)
Line 1: Line 1:
{{lowercase}}
 
 
{{TDClassSummary|summary=An Attribute describes a general geometric Attribute, associated with a Prim Class, Point Class, or Vertex Class.
 
{{TDClassSummary|summary=An Attribute describes a general geometric Attribute, associated with a Prim Class, Point Class, or Vertex Class.
 
Specific values for each Prim, Point or Vertex are described with the AttributeData Class.
 
Specific values for each Prim, Point or Vertex are described with the AttributeData Class.

Revision as of 10:27, 9 August 2017

An Attribute describes a general geometric Attribute, associated with a Prim Class, Point Class, or Vertex Class. Specific values for each Prim, Point or Vertex are described with the AttributeData Class. Lists of attributes for the SOP are described with the Attributes Class.


Members[edit]

default(Read Only):

The default values associated with this attribute. Dependent on the type of attribute, it may return a float, integer, string, tuple, Position, or Vector.

size(Read Only):

The number of values associated with this attribute. For example, a normal attribute has a size of 3.

type(Read Only):

The type associated with this attribute: float, integer or string.

name(Read Only):

The name of this attribute.

owner(Read Only):

The OP to which this object belongs.

Methods[edit]

destroy():

:

Destroy the attribute referenced by this object.

n = scriptOP.pointAttribs['N'].destroy()

TouchDesigner Build:

{list}