point Class

From TouchDesigner Documentation
Revision as of 10:25, 9 August 2017 by Admin (talk | contribs) (Point Class Auto Create)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

A Point describes an instance to a single geometry point. They are accessible through the SOP.points member.


P(Read Only):

The coordinates as AttributeData. Individual components can be read or written with the [] operator.

point.P[0] = 5

point.P = (1,0,1)

owner(Read Only):

The OP to which this object belongs.

x(Read Only):

Get or set x coordinate value. This is the same as P[0].

y(Read Only):

Get or set y coordinate value. This is the same as P[1].

z(Read Only):

Get or set z coordinate value. This is the same as P[2].

index(Read Only):

The point index in the list.




Destroy and remove the actual point this object refers to. This operation is only valid when the primitive belongs to a scriptSOP.

Note: after this call, other existing Point objects in this SOP may no longer be valid.

TouchDesigner Build:


Each SOP has a list of Points. Each point has an XYZ 3D position value plus other optional attributes. Each polygon Primitive is defined by a vertex list, which is list of point numbers.

An Operator Family that reads, creates and modifies 3D polygons, curves, NURBS surfaces, spheres, meatballs and other 3D surface data.