diff --git a/openpype/hosts/maya/api/__init__.py b/openpype/hosts/maya/api/__init__.py index 1b75076028..9ea798e927 100644 --- a/openpype/hosts/maya/api/__init__.py +++ b/openpype/hosts/maya/api/__init__.py @@ -51,16 +51,17 @@ __all__ = [ "install", "uninstall", - "Creator", - "Loader", - "ls", + "containerise", "lock", "unlock", "is_locked", "lock_ignored", + "Creator", + "Loader", + # Workfiles API "open_file", "save_file", diff --git a/openpype/hosts/maya/api/commands.py b/openpype/hosts/maya/api/commands.py index ebae3b1399..c774afcc12 100644 --- a/openpype/hosts/maya/api/commands.py +++ b/openpype/hosts/maya/api/commands.py @@ -55,7 +55,6 @@ def edit_shader_definitions(): window.show() - def reset_frame_range(): """Set frame range to current asset""" # Set FPS first diff --git a/openpype/hosts/maya/api/lib.py b/openpype/hosts/maya/api/lib.py index ff19f72097..27a7061f74 100644 --- a/openpype/hosts/maya/api/lib.py +++ b/openpype/hosts/maya/api/lib.py @@ -639,7 +639,7 @@ def serialise_shaders(nodes): continue meshes_by_shader = dict() - for id_, mesh in meshes_by_id.items(): + for mesh in meshes_by_id.values(): shape = cmds.listRelatives(mesh, shapes=True, fullPath=True) or list() diff --git a/openpype/hosts/maya/api/menu.py b/openpype/hosts/maya/api/menu.py index 5554fce583..40ffd825f3 100644 --- a/openpype/hosts/maya/api/menu.py +++ b/openpype/hosts/maya/api/menu.py @@ -77,7 +77,9 @@ def install(): cmds.menuItem( "Publish...", - command=lambda *args: host_tools.show_publish(parent=parent_widget), + command=lambda *args: host_tools.show_publish( + parent=parent_widget + ), image=publish.ICON ) diff --git a/openpype/hosts/maya/api/pipeline.py b/openpype/hosts/maya/api/pipeline.py index a5455d0083..476ceb840b 100644 --- a/openpype/hosts/maya/api/pipeline.py +++ b/openpype/hosts/maya/api/pipeline.py @@ -180,7 +180,9 @@ def uninstall(): avalon.api.deregister_plugin_path(avalon.api.Loader, LOAD_PATH) avalon.api.deregister_plugin_path(avalon.api.Creator, CREATE_PATH) - avalon.api.deregister_plugin_path(avalon.api.InventoryAction, INVENTORY_PATH) + avalon.api.deregister_plugin_path( + avalon.api.InventoryAction, INVENTORY_PATH + ) menu.uninstall()