cgl.plugins.maya package

Subpackages

Submodules

cgl.plugins.maya.alchemy module

cgl.plugins.maya.asset_picker module

cgl.plugins.maya.convert_to_abc module

cgl.plugins.maya.convert_to_abc.convert_to_abc(src_path, dst_path, auto_uvs=False, **kwargs)[source]
cgl.plugins.maya.convert_to_abc.detect_export_frame_range()[source]

Autodetect frame range of file based on animations curves and various nodes

cgl.plugins.maya.convert_to_abc.has_uv(mesh)[source]
cgl.plugins.maya.convert_to_abc.main()[source]
cgl.plugins.maya.convert_to_abc.maya_auto_uvs(nodes=None)[source]
cgl.plugins.maya.convert_to_abc.standalone_convert_to_abc(src_path, dst_path, auto_uvs=False, **kwargs)[source]

cgl.plugins.maya.custom_menu module

cgl.plugins.maya.deadline_util module

cgl.plugins.maya.mdl_util module

cgl.plugins.maya.mdl_util.create_high_group(materials)[source]
cgl.plugins.maya.mdl_util.create_material_groups(do_high=True, do_mdl=True)[source]
cgl.plugins.maya.mdl_util.create_mdl_group(res='high')[source]
cgl.plugins.maya.mdl_util.create_mdl_structure()[source]

cgl.plugins.maya.playblast module

cgl.plugins.maya.scene_description_delete module

cgl.plugins.maya.setup module

cgl.plugins.maya.setup.clean_env()[source]

Cleans the maya python path

cgl.plugins.maya.setup.copy_setup()[source]

Copies the usersetup.py script from the local code location to the maya documents dir

cgl.plugins.maya.setup.get_maya_versions()[source]

Returns the maya versions available on the system

cgl.plugins.maya.setup.get_mayapy_path(version=None)[source]

Returns the mayapy path for the given maya version

cgl.plugins.maya.setup.install_requirements(version=2024)[source]

Installs the requirements.txt file in the magic_browser folder using mayapy.

cgl.plugins.maya.setup.setup_env()[source]

Sets up the maya python path to contain the alchemy_build_path if it exists, or the alchemy_dev_path if it exists Returns:

cgl.plugins.maya.setup.setup_maya(version)[source]
cgl.plugins.maya.setup.update_user_config(version=None)[source]

UPdates the user config file with the path to the maya env file and the year: user_config()[‘software’][‘maya’][version][‘maya_env_file’] = maya_env_file Returns:

cgl.plugins.maya.setup.write_env_file(version=None)[source]

UPdates the maya.env file with the magic_browser code root and config root Returns:

cgl.plugins.maya.standalone module

exception cgl.plugins.maya.standalone.MayaStandAloneException[source]

Bases: Exception

class cgl.plugins.maya.standalone.MayaStandAloneExceptionPickle(exc, tb)[source]

Bases: object

class cgl.plugins.maya.standalone.MayaStandAloneResult[source]

Bases: object

cgl.plugins.maya.standalone.main_maya(result_file)[source]
cgl.plugins.maya.standalone.rebuild_exc(exc, tb)[source]
cgl.plugins.maya.standalone.run_in_maya_standalone(entrypoint, *args, **kwargs)[source]

run a function in maya standalone process and return result

entrypoint is a string with following syntax:

“cgl.plugins.maya.module_name:func_to_run”

the ‘:’ at the end is the function you want to run in the module

args and kwargs need to be pickleable objects and as does the result of the function

cgl.plugins.maya.standalone.test_func()[source]

cgl.plugins.maya.tex_util module

cgl.plugins.maya.tt module

cgl.plugins.maya.tt.create_turntable()[source]
cgl.plugins.maya.tt.import_tt_lighting()[source]

cgl.plugins.maya.userSetup module

cgl.plugins.maya.utils module

cgl.plugins.maya.vertex_colors module

Module contents