Prims Class

From Derivative
Jump to navigation Jump to search

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


Members[edit]

ownerOP (Read Only):

The OP to which this object belongs.

Methods[edit]

No operator specific methods.

Special Functions[edit]

len(Prims)int:

Returns the total number of prims.

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

[index]td.Prim:

Get a specific prim given an integer index.

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

Iteratortd.Prim:

Iterate over each prim.

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


TouchDesigner Build: