Prims Class

From Derivative
Jump to: navigation, search

The Prims class describes the set of prim objects (primitives) owned by one SOP.



Members

Prims.ownerOP (Read Only):

The OP to which this object belongs.

Methods

No operator specific methods.

Special Functions

Prims.len(Prims)int:

Returns the total number of prims.
a = len(op('box1').prims)

Prims.[index]td.Prim:

Get a specific prim given an integer index.
n = op('box1').prims[0]

Prims.Iteratortd.Prim:

Iterate over each prim.
for m in op('box1').prims:
	# do something with m, which is a Prim


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.