Mesh¶
-
class
cgp_maya_utils.scene.Mesh(name)¶ Bases:
cgp_maya_utils.scene.Shapenode object that manipulates a
meshshape node-
count()¶ the count of vertices of the mesh
Returns: the count of vertices of the mesh Return type: int
-
export(**kwargs)¶ export the mesh in the library
Parameters: name (str) – name of the mesh in the library Returns: the exported file Return type: cgp_maya_utils.files.ObjFile
-
classmethod
import_(style, parent=None, name=None)¶ import a mesh
Parameters: - style (str) – style of the mesh shape to import that exists in the shape library - ex :
cube-circle - parent (str or
cgp_maya_utils.scene.Transform) – transform to which the mesh will be parented - new transform if nothing specified - name (str) – name of the mesh
Returns: the imported mesh
Return type: - style (str) – style of the mesh shape to import that exists in the shape library - ex :
-