cgl.plugins package¶
Subpackages¶
- cgl.plugins.aws package
- cgl.plugins.blender package
- Subpackages
- cgl.plugins.blender.tasks package
- Submodules
- cgl.plugins.blender.tasks.anim module
- cgl.plugins.blender.tasks.bndl module
- cgl.plugins.blender.tasks.cam module
- cgl.plugins.blender.tasks.lay module
- cgl.plugins.blender.tasks.light module
- cgl.plugins.blender.tasks.mdl module
- cgl.plugins.blender.tasks.prev module
- cgl.plugins.blender.tasks.rig module
- cgl.plugins.blender.tasks.shd module
- cgl.plugins.blender.tasks.smart_task module
- cgl.plugins.blender.tasks.tex module
- Module contents
- cgl.plugins.blender.tasks package
- Submodules
- cgl.plugins.blender.alchemy module
- cgl.plugins.blender.alchemy_legacy module
- cgl.plugins.blender.cgl_browser_widget module
- cgl.plugins.blender.custom_menu module
- cgl.plugins.blender.gui module
- cgl.plugins.blender.lumbermill module
- cgl.plugins.blender.magic_scene_description module
- cgl.plugins.blender.main_window module
- cgl.plugins.blender.msd module
- cgl.plugins.blender.name_tests module
- cgl.plugins.blender.utils module
add_buttons_to_menu()add_hdri_root()add_modifier()basic_playblast()build_default_structure()check_child_naming()clean_name()clean_tt()cleanup_file()cleanup_scene_data()clear_parent()collections_in_scene()confirm_prompt()create_button_file()create_collection()create_env_light()create_folders()create_menu_file()create_object()create_shot_mask_info()create_task_on_asset()create_thumb()create_tt()current_selection()default_matrix()delete_object()format_list()get_button_path()get_collection()get_collection_from_path_object()get_current_camera()get_formatted_list()get_frame_end()get_frame_range()get_frame_start()get_framerange()get_handle_end()get_handle_start()get_hdri_config()get_hdri_root()get_hdri_yaml_path()get_items()get_last_button_number()get_layer()get_lib_from_object()get_materials_dictionary()get_materials_from_object()get_matrix()get_menu_at()get_menu_path()get_mesh_nodes_recursive()get_namespace()get_next_namespace()get_object()get_objects_in_hirarchy()get_playblast_path()get_preview_from_texture()get_ref_node()get_reference_meshes()get_scene_collection()get_scene_name()get_scene_object()get_search_selection_task()get_selected_namespace()get_selected_reference()get_selection()get_shape_name()get_top_nodes()get_valid_meshes_list()get_valid_objects_in_scene_hirarchy()hdri_widget()keep_single_collections()keep_single_user_collection()load_library()load_plugin()move_linked_libraries_to_project()move_to_project()objects_in_scene()parent_object()parent_to_collection()playblast_exists()preview_inputs_from_node_tree()purge_unused_data()read_layout()read_materials()read_matrix()remove_instancers()remove_linked_environment_dependencies()remove_unused_libraries()rename_collection()rename_materials()render()reorder_list()reparent_collections()reparent_linked_environemnt_assets()return_asset_name()return_lib_path()return_linked_library()return_object_list()review_exists()save_to_task()scene_elem()search_dialog()select_objects()select_reference()selected_library()selection()set_all_paths_relative()set_collection_name()set_context_view_3d()set_default_scene_settings()set_framerange()set_object_names_from_library()set_subdivs()setup_preview_viewport_display()switch_item_on_library()switch_library()switch_overlays()tag_scene()unlink_asset()update_libraries_project()valid_task_exists()write_layout()
- Module contents
- Subpackages
- cgl.plugins.bridge package
- cgl.plugins.finalDraft package
- cgl.plugins.ftrack package
- cgl.plugins.github package
- cgl.plugins.google package
- cgl.plugins.houdini package
- cgl.plugins.jira package
- cgl.plugins.magic_browser package
- cgl.plugins.maya package
- Subpackages
- cgl.plugins.maya.cli package
- Submodules
- cgl.plugins.maya.cli.create_preview module
- cgl.plugins.maya.cli.create_thumb module
- cgl.plugins.maya.cli.fix_abc module
- cgl.plugins.maya.cli.fix_fbx module
- cgl.plugins.maya.cli.fix_references module
- cgl.plugins.maya.cli.mdl_create_source_from_render module
- cgl.plugins.maya.cli.update_msd module
- cgl.plugins.maya.cli.utils module
- Module contents
- cgl.plugins.maya.tasks package
- Submodules
- cgl.plugins.maya.tasks.anm module
- cgl.plugins.maya.tasks.bndl module
- cgl.plugins.maya.tasks.cam module
- cgl.plugins.maya.tasks.cfx module
- cgl.plugins.maya.tasks.grm module
- cgl.plugins.maya.tasks.lay module
- cgl.plugins.maya.tasks.lite module
- cgl.plugins.maya.tasks.mdl module
- cgl.plugins.maya.tasks.rig module
- cgl.plugins.maya.tasks.set module
- cgl.plugins.maya.tasks.shd module
- cgl.plugins.maya.tasks.tex module
- cgl.plugins.maya.tasks.tlr module
- Module contents
- cgl.plugins.maya.tools package
- cgl.plugins.maya.cli package
- Submodules
- cgl.plugins.maya.alchemy module
- cgl.plugins.maya.asset_picker module
- cgl.plugins.maya.convert_to_abc module
- cgl.plugins.maya.custom_menu module
- cgl.plugins.maya.deadline_util module
- cgl.plugins.maya.mdl_util module
- cgl.plugins.maya.playblast module
- cgl.plugins.maya.scene_description_delete module
- cgl.plugins.maya.setup module
- cgl.plugins.maya.standalone module
- cgl.plugins.maya.tex_util module
- cgl.plugins.maya.tt module
- cgl.plugins.maya.userSetup module
- cgl.plugins.maya.utils module
- cgl.plugins.maya.vertex_colors module
- Module contents
- Subpackages
- cgl.plugins.nuke package
- Subpackages
- cgl.plugins.nuke.bin package
- cgl.plugins.nuke.tasks package
- Submodules
- cgl.plugins.nuke.tasks.cam module
- cgl.plugins.nuke.tasks.comp module
- cgl.plugins.nuke.tasks.elem module
- cgl.plugins.nuke.tasks.fx module
- cgl.plugins.nuke.tasks.key module
- cgl.plugins.nuke.tasks.lite module
- cgl.plugins.nuke.tasks.lut module
- cgl.plugins.nuke.tasks.plate module
- cgl.plugins.nuke.tasks.smart_task module
- Module contents
- Submodules
- cgl.plugins.nuke.alchemy module
- cgl.plugins.nuke.alchemy_old module
- cgl.plugins.nuke.cgl_nuke module
- cgl.plugins.nuke.cgl_nuke_command_line module
- cgl.plugins.nuke.custom_menu module
- cgl.plugins.nuke.gui module
- cgl.plugins.nuke.nuke_command_line module
- cgl.plugins.nuke.userSetup module
- cgl.plugins.nuke.utils module
- Module contents
- Subpackages
- cgl.plugins.otio package
- Subpackages
- cgl.plugins.otio.tools package
- Subpackages
- Submodules
- cgl.plugins.otio.tools.edit_info module
- cgl.plugins.otio.tools.edit_list_publisher module
- cgl.plugins.otio.tools.edit_list_publisher_backend module
- cgl.plugins.otio.tools.exrheader module
- cgl.plugins.otio.tools.extract_shots module
- cgl.plugins.otio.tools.find_edit_files module
- cgl.plugins.otio.tools.media_encoder module
- cgl.plugins.otio.tools.mp4_chopper module
- cgl.plugins.otio.tools.picker module
- cgl.plugins.otio.tools.shotgrid_cut_upload module
- cgl.plugins.otio.tools.shotgrid_shot_metadata module
- cgl.plugins.otio.tools.summary module
- cgl.plugins.otio.tools.utils module
- Module contents
- cgl.plugins.otio.tools package
- Module contents
- Subpackages
- cgl.plugins.perforce package
- cgl.plugins.preflight package
- Submodules
- cgl.plugins.preflight.launch module
- cgl.plugins.preflight.main module
ItemTablePreflightPreflight.begin_checks()Preflight.check_complete()Preflight.check_request()Preflight.check_submitPreflight.clean_module()Preflight.closeEvent()Preflight.close_threads()Preflight.end_checks()Preflight.get_checks_from_selection()Preflight.populate_table()Preflight.previous_checks_passed()Preflight.restore_incomplete_preflight()Preflight.run_all_clicked()Preflight.run_selected_clicked()Preflight.staticMetaObjectPreflight.update_event_step()Preflight.update_progress()Preflight.update_selection()Preflight.update_status()
PreflightExecutorPreflightModelmain()try_run_class()
- cgl.plugins.preflight.preflight_check module
- Module contents
- cgl.plugins.shotgrid package
- Subpackages
- Submodules
- cgl.plugins.shotgrid.constants module
- cgl.plugins.shotgrid.create module
- cgl.plugins.shotgrid.edit module
- cgl.plugins.shotgrid.main module
- cgl.plugins.shotgrid.query module
- cgl.plugins.shotgrid.utils module
- Module contents
- cgl.plugins.substance package
Submodules¶
cgl.plugins.AlchemyScene module¶
- class cgl.plugins.AlchemyScene.Scene[source]¶
Bases:
object- filename = None¶
- static get_class(task)[source]¶
Gets the smart task class that relates to the specified task.
If no task is specified, the task for the current scene will be used.
- Parameters:
task (str) – The name of the task to get the class for.
- Returns:
the class for the specified task.
- Return type:
class_ (class)
- import_task(task: str, **kwargs)[source]¶
Imports the latest version of the specified task into the scene.
- Parameters:
task – the task to import.
**kwargs – Used to pass additional arguments to the import_latest() function of the task class.
- Returns:
the class for the specified task.
- Return type:
- path = None¶
- path_object = None¶
- render()[source]¶
Launches the preflight dialog for the current scene based off what’s available in the alchemist’s cookbook.
- render_dir = None¶
- review()[source]¶
Checks for review media in the folder structure for the current version, if it finds it, goes through the magic_browser “review” process for this media type. This typically consists of:
Check for existing renders
Create jpg proxies of the renders
Create a mov from the jpg proxies.
Upload mov to review platform (like shotgrid)
Launch URL for the review.
- Returns:
URL
- screen_grab(dialog=False)[source]¶
Allows the user to capture a thumbnail for the current scene.
- Pops open a screen capture window and when you grab the screen it does the following:
Create preview file for current scene_object()
Creates thumb_file for current scene_object()
Updates Project Management with new thumbnail.
- Returns:
True if the thumbnail was captured successfully, otherwise False.
- Return type:
bool
- setup_alchemy_plugin(version)[source]¶
Function designed to set up the application to autoload magic_browser tools and cookbook menus.
- Parameters:
version (str) – The version of the magic_browser plugin to load.
- Returns:
None
- source_dir = None¶
cgl.plugins.CustomMenu module¶
- class cgl.plugins.CustomMenu.CustomMenu(software, type_)[source]¶
Bases:
objectA Base Class to be used in conjunction with the “Menu Designer”.
A user simply has to fill in the following functions: get_scene_path() set_menu_parent() create_menu() add_button()f delete_menu() find_menu_by_name()
- Examples can be found here:
1) plugins/nuke/custom_menu.py 1) plugins/maya/custom_menu.py
- add_button(menu_label, label='', annotation='', command='', icon='', image_overlay_label='', hot_key='', menu_name=None)[source]¶
Adds a button with telemetry wrapping. Subclasses implement _create_button to attach to the actual UI.
- get_icon_path(shelf, button)[source]¶
returns the icon path within the current menu of the cgl_tools directory of the corresponding icon :param shelf: :param button:
- Returns:
icon path string
- load_cgl()[source]¶
- Returns:
all the shelves, menus, or publish from the json file
- Return type:
dict
Loads all menus :param test:
- order_buttons(menu)[source]¶
Orders the buttons correctly within a menu. :param menu: the name of the menu to order :type menu: str
- Returns:
a sorted list of buttons
- Return type:
list
Orders the Menus from the json file correctly.
This is necessary for the menus to show up in the correct order within the interface.
- Returns:
A list of the menus in the correct order
- path_object = None¶
cgl.plugins.setup module¶
cgl.plugins.smart_task module¶
- class cgl.plugins.smart_task.SmartTask(msd=None, task_object=None, path_object=None, dcc=None, task=None, scene=None, **kwargs)[source]¶
Bases:
objectThis is a template for a “task” within the cookbook. It covers common areas when dealing with digital assets specific to different tasks.
- dcc = None¶
- export_task()[source]¶
Basic export method for tasks
This should call the customizable ‘_export()’ method per file.
This method is typically overridden in the specific task class to handle the export logic.
- get_msd_data()[source]¶
creates the msd dictionary for the task being called. This is used at publish time to get the data to be wrtten to the .msd file. :param task_name:
- get_task_object(task, latest=True)[source]¶
Returns a PathObject with the task set to the input task :param task: the task we want to set the PathObject to
- Returns:
the PathObject with the task set to the input task
- Return type:
- import_latest(task=None, reference=False, **kwargs)[source]¶
Imports the lastest published version of whatever files this task is responsible for.
This method is typically overridden in the specific task class to handle the import logic.
- msd_dict = None¶
- msd_path = ''¶
- path_object = None¶
- scene = None¶
- task = None¶
- task_entity_type = None¶
- task_object = None¶
- cgl.plugins.smart_task.get_dcc_from_task_file(caller_file)[source]¶
Gets the dcc from the caller file path.
- Parameters:
caller_file – the file path of the caller
- Returns:
the dcc name
- Return type:
str
- cgl.plugins.smart_task.get_legacy_task_class(software, task)[source]¶
Gets the legacy task class for the specified software and task. This is used for tasks that are not in the cookbook structure.
- Parameters:
software – the dcc in the plugins directory where we can find Task().get_msd_data()
task – the task to get the class for
- Returns:
class or None if the class does not exist
- cgl.plugins.smart_task.get_task_class(software, task)[source]¶
gets the class that relates to the specified task, if no task is specified the task for the current scene will be used.
- Parameters:
software – the dcc in the plugins directory where we can find Task().get_msd_data()
task – the task to get the class for
- Returns:
class or None if the class does not exist