ObjFile

class cgp_maya_utils.files.ObjFile(path)

Bases: cgp_generic_utils.files.File

file object that manipulates a .obj file on the file system

classmethod create(**kwargs)

create an obj file

Parameters:
  • path (str) – path of the obj file
  • content (list[str, cgp_maya_utils.scene.Node]) – nodes from the scene to add to the content of the file - use selection if nothing is specified
Returns:

the created obj file

Return type:

cgp_maya_utils.files.ObjFile

import_(name)

imports the obj file

Parameters:name (str) – name of the imported object
Returns:the imported object
Return type:str