Group Class

From TouchDesigner Documentation
Jump to: navigation, search

An Group describes groups lists of Prim Class or Point Class.

A Group can be created with the Group SOP or using the createPointGroup(str) or createPrimGroup(str) methods of the ScriptSOP Class.


Members[edit]

defaulttuple (Read Only):

The default values associated with this Group. It returns a tuple item of group points.

namestr :

Set/gets the group name.

ownerOP (Read Only):

Gets the owner of this group.

Methods[edit]

add(Point or Prim or int)None:

Adds a point/primitive to this group. The point or primitive to be added can be specified by a point, primitive object or the index of a point or primitive object.

discard(Point or Prim or int)None:

Removes a point/primitive from this group. The point or primitive to be removed can be specified by a point, primitive object or the index of a point or primitive object.

destroy()None:

Destroys the current point/primitive group.


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.