Prims Class

From Derivative
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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


Members

ownerOP (Read Only):

The OP to which this object belongs.

Methods

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: