Mesh

class cgp_maya_utils.scene.Mesh(name)

Bases: cgp_maya_utils.scene.Shape

node object that manipulates a mesh shape 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:

cgp_maya_utils.scene.Mesh

points()

the vertices of the mesh

Returns:the vertices of the mesh
Return type:list[str]