Difference between revisions of "SOP Class"

From Derivative
Jump to navigation Jump to search
Line 117: Line 117:
 
name = n.save()  #save in native format with default name.
 
name = n.save()  #save in native format with default name.
 
n.save('output.bgeo')  #alternate format compatible with some other modelling packages.
 
n.save('output.bgeo')  #alternate format compatible with some other modelling packages.
<syntaxhighlight>
+
</syntaxhighlight>
 
}}}}
 
}}}}
 
<section end=HELPBODY />
 
<section end=HELPBODY />
 
{{History}}
 
{{History}}
 
{{#invoke:Category|list|Python Reference}}
 
{{#invoke:Category|list|Python Reference}}

Revision as of 14:30, 25 September 2017

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


Members[edit]

centertdu.Position :

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

comparebool :

Get or set compare flag.

isSOPbool (Read Only):

True if the operator is a SOP.

maxtdu.Position (Read Only):

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

mintdu.Position (Read Only):

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

numPointsint (Read Only):

The number of points contained in this SOP.

numPrimsint (Read Only):

The number of primitivies contained in this SOP.

pointAttribstd.Attributes (Read Only):

The set of point attributes defined in this SOP.

pointstd.Points (Read Only):

The set of points contained in this SOP.

primAttribstd.Attributes (Read Only):

The set of primitive attributes defined in this SOP.

primsint (Read Only):

The set of primitives contained in this SOP.

sizetdu.Position (Read Only):

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

templatebool (Read Only):

Get or set template flag.

vertexAttribstd.Attributes (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: