Points Class

From TouchDesigner Documentation
Jump to: navigation, search

The Points class describes the set of point objects owned by one SOP.


ownerOP (Read Only):

The OP to which this object belongs.


No operator specific methods.

Special Functions[edit]


Returns the total number of points.

a = len(op('box1').points)


Get a specific point given an integer index.

n = op('box1').points[0]


Iterate over each point.

for m in op('box1').points:
	# do something with m, which is a Point

TouchDesigner Build:

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.

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.