sOP Class

From TouchDesigner Documentation
Revision as of 10:25, 9 August 2017 by Admin (talk | contribs) (SOP Class Auto Create)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


A SOP describes a reference to a SOP operator, containing points and primitives.


Members[edit]

center(Read Only):

Get or set the barycentric coordinate of this operator's geometry. It is expressed as a Position.

compare(Read Only):

Get or set compare flag.

isSOP(Read Only):

True if the operator is a SOP.

max(Read Only):

The maximum coordinates of this operator's geometry along each dimension, expressed as Position.

min(Read Only):

The minimum coordinates of this operator's geometry along each dimension, expressed as a Position.

numPoints(Read Only):

The number of points contained in this SOP.

numPrims(Read Only):

The number of primitivies contained in this SOP.

pointAttribs(Read Only):

The set of point attributes defined in this SOP.

points(Read Only):

The set of points contained in this SOP.

primAttribs(Read Only):

The set of primitive attributes defined in this SOP.

prims(Read Only):

The set of primitives contained in this SOP.

size(Read Only):

The size of this operator's geometry along each dimension, expressed as a Position.

template(Read Only):

Get or set template flag.

vertexAttribs(Read Only):

The set of vertex attributes defined in this SOP.

Methods[edit]

save(filepath):

: -> filepath

Saves the geometry to the file system. Multiple file types are supported. Returns the filename and path saved. filepath - (Optional) The path and filename to save to. If not given then a default filename will be used, and the file will be saved in the project.folder folder. name = n.save() #save in native format with default name.

n.save('output.bgeo') #alternate format compatible with some other modelling packages.

TouchDesigner Build:

{list}

An Operator Family that reads, creates and modifies 3D polygons, curves, NURBS surfaces, spheres, meatballs and other 3D surface data.