Difference between revisions of "Attribute Class"

From Derivative
Jump to navigation Jump to search
(cleaning)
Line 1: Line 1:
{{TDClassSummary|label=Attribute|summary=An Attribute describes a general geometric Attribute, associated with a Prim Class, Point Class, or Vertex Class.
+
{{TDClassSummary|label=Attribute|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]].
Lists of attributes for the SOP are described with the Attributes Class.}}
+
Lists of attributes for the [[SOP Class|SOP]] are described with the [[Attributes Class]].}}
 
<section begin=HELPBODY />
 
<section begin=HELPBODY />
 
{{ClassMemberSection|empty=
 
{{ClassMemberSection|empty=
Line 12: Line 12:
 
     |type=value
 
     |type=value
 
     |set=0
 
     |set=0
     |text=The default values associated with this attribute. Dependent on the type of attribute, it may return a float, integer, string, tuple, Position, or Vector.
+
     |text=The default values associated with this attribute. Dependent on the type of attribute, it may return a float, integer, string, tuple, [[Position Class|Position]], or [[Vector Class|Vector]].}}
}}
 
 
{{ClassMember
 
{{ClassMember
 
     |class=Attribute
 
     |class=Attribute
Line 40: Line 39:
 
     |type=OP
 
     |type=OP
 
     |set=0
 
     |set=0
     |text=The OP to which this object belongs.
+
     |text=The [[OP Class|OP]] to which this object belongs.}}}}
}}}}
 
 
{{ClassMethodSection|empty=
 
{{ClassMethodSection|empty=
 
|Sectionsummary=
 
|Sectionsummary=

Revision as of 19:01, 21 June 2018

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]

defaultvalue (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.

sizeint (Read Only):

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

typetype object (Read Only):

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

namestr (Read Only):

The name of this attribute.

ownerOP (Read Only):

The OP to which this object belongs.

Methods[edit]

destroy()None:

Destroy the attribute referenced by this object.

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

Accessing Attributes[edit]

See Attributes for examples on how to access individual attributes.


TouchDesigner Build: