:recyce: move maya addon

This commit is contained in:
Ondřej Samohel 2024-05-23 17:05:58 +02:00
parent a25bda81a1
commit d92385c3d4
No known key found for this signature in database
GPG key ID: 02376E18990A97C6
300 changed files with 416 additions and 404 deletions

View file

@ -53,8 +53,10 @@ MOVED_ADDON_MILESTONE_VERSIONS = {
"applications": VersionInfo(0, 2, 0),
"clockify": VersionInfo(0, 2, 0),
"tvpaint": VersionInfo(0, 2, 0),
"maya": VersionInfo(0, 2, 0),
}
# Inherit from `object` for Python 2 hosts
class _ModuleClass(object):
"""Fake module class for storing AYON addons.
@ -1323,7 +1325,7 @@ class TrayAddonsManager(AddonsManager):
self.doubleclick_callback = None
def add_doubleclick_callback(self, addon, callback):
"""Register doubleclick callbacks on tray icon.
"""Register double-click callbacks on tray icon.
Currently, there is no way how to determine which is launched. Name of
callback can be defined with `doubleclick_callback` attribute.

View file

@ -39,8 +39,8 @@ from ayon_core.lib import (
EnumDef,
is_in_tests,
)
from ayon_core.hosts.maya.api.lib_rendersettings import RenderSettings
from ayon_core.hosts.maya.api.lib import get_attr_in_layer
from ayon_maya.api.lib_rendersettings import RenderSettings
from ayon_maya.api.lib import get_attr_in_layer
from openpype_modules.deadline import abstract_submit_deadline
from openpype_modules.deadline.abstract_submit_deadline import DeadlineJobInfo

View file

@ -108,6 +108,10 @@ line-ending = "auto"
# Ignore words that are not in the dictionary.
ignore-words-list = "ayon,ynput,parms,parm,hda,developpement,ue"
# Ignore lines that contain this regex. This is hack for missing inline ignore.
# Remove with next codespell release (>2.2.6)
ignore-regex = ".*codespell:ignore.*"
skip = "./.*,./package/*,*/vendor/*,*/unreal/integration/*,*/aftereffects/api/extension/js/libs/*"
count = true
quiet-level = 3

View file

@ -4,7 +4,7 @@ import os
from maya import cmds # noqa
from ayon_core.hosts.maya.api.lib import evaluation
from ayon_maya.api.lib import evaluation
log = logging.getLogger(__name__)

View file

@ -6,7 +6,7 @@ compatible implementation to support bothPython 2 and Python 3.
Instead of using ExitStack from contextlib, use it from this module:
>>> from ayon_core.hosts.maya.api.exitstack import ExitStack
>>> from ayon_maya.api.exitstack import ExitStack
It will provide the appropriate ExitStack implementation for the current
running Python version.

View file

@ -4,7 +4,7 @@ import logging
from maya import cmds # noqa
import maya.mel as mel # noqa
from ayon_core.hosts.maya.api.lib import maintained_selection
from ayon_maya.api.lib import maintained_selection
class FBXExtractor:

View file

@ -16,7 +16,7 @@ _gltf_options = {
"hbu": bool, # hashBufferURI
"ext": bool, # externalTextures
"ivt": int, # initialValuesTime
"acn": str, # animationClipName
"acn": str, # animationClipName # codespell:ignore acn
"ast": int, # animationClipStartTime
"aet": int, # animationClipEndTime
"afr": float, # animationClipFrameRate

View file

@ -8,7 +8,7 @@ from ayon_core.settings import get_project_settings
from ayon_core.pipeline import CreatorError, get_current_project_name
from ayon_core.pipeline.context_tools import get_current_folder_entity
from ayon_core.hosts.maya.api.lib import reset_frame_range
from ayon_maya.api.lib import reset_frame_range
class RenderSettings(object):

View file

@ -19,7 +19,7 @@ from maya.app.renderSetup.model.override import (
UniqueOverride
)
from ayon_core.hosts.maya.api.lib import get_attribute
from ayon_maya.api.lib import get_attribute
EXACT_MATCH = 0
PARENT_MATCH = 1

View file

@ -15,7 +15,7 @@ from ayon_core.pipeline import (
)
from ayon_core.pipeline.workfile import BuildWorkfile
from ayon_core.tools.utils import host_tools
from ayon_core.hosts.maya.api import lib, lib_rendersettings
from ayon_maya.api import lib, lib_rendersettings
from .lib import get_main_window, IS_HEADLESS
from ..tools import show_look_assigner

View file

@ -45,8 +45,8 @@ from ayon_core.pipeline.workfile.lock_workfile import (
is_workfile_locked,
is_workfile_lock_enabled
)
from ayon_core.hosts.maya import MAYA_ROOT_DIR
from ayon_core.hosts.maya.lib import create_workspace_mel
from ayon_maya import MAYA_ROOT_DIR
from ayon_maya.lib import create_workspace_mel
from . import menu, lib
from .workio import (
@ -58,7 +58,7 @@ from .workio import (
current_file
)
log = logging.getLogger("ayon_core.hosts.maya")
log = logging.getLogger("ayon_maya")
PLUGINS_DIR = os.path.join(MAYA_ROOT_DIR, "plugins")
PUBLISH_PATH = os.path.join(PLUGINS_DIR, "publish")

View file

@ -809,7 +809,7 @@ class ReferenceLoader(Loader):
def update(self, container, context):
from maya import cmds
from ayon_core.hosts.maya.api.lib import get_container_members
from ayon_maya.api.lib import get_container_members
node = container["objectName"]

View file

@ -20,7 +20,7 @@ from ayon_core.pipeline import (
get_representation_path,
get_current_project_name,
)
from ayon_core.hosts.maya.api.lib import (
from ayon_maya.api.lib import (
matrix_equals,
unique_namespace,
get_container_transforms,

View file

@ -1,5 +1,5 @@
from ayon_applications import PreLaunchHook, LaunchTypes
from ayon_core.hosts.maya.lib import create_workspace_mel
from ayon_maya.lib import create_workspace_mel
class PreCopyMel(PreLaunchHook):

View file

@ -1,8 +1,8 @@
import ayon_api
from ayon_core.pipeline.create.creator_plugins import ProductConvertorPlugin
from ayon_core.hosts.maya.api import plugin
from ayon_core.hosts.maya.api.lib import read
from ayon_maya.api import plugin
from ayon_maya.api.lib import read
from maya import cmds
from maya.app.renderSetup.model import renderSetup
@ -12,7 +12,7 @@ class MayaLegacyConvertor(ProductConvertorPlugin,
plugin.MayaCreatorBase):
"""Find and convert any legacy products in the scene.
This Convertor will find all legacy products in the scene and will
This Converter will find all legacy products in the scene and will
transform them to the current system. Since the old products doesn't
retain any information about their original creators, the only mapping
we can do is based on their families.

View file

@ -1,6 +1,6 @@
from maya import cmds
from ayon_core.hosts.maya.api import lib, plugin
from ayon_maya.api import lib, plugin
from ayon_core.lib import (
BoolDef,

View file

@ -1,6 +1,6 @@
from maya import cmds
from ayon_core.hosts.maya.api import (
from ayon_maya.api import (
lib,
plugin
)

View file

@ -1,4 +1,4 @@
from ayon_core.hosts.maya.api import plugin
from ayon_maya.api import plugin
class CreateAssembly(plugin.MayaCreator):

View file

@ -1,4 +1,4 @@
from ayon_core.hosts.maya.api import (
from ayon_maya.api import (
lib,
plugin
)

View file

@ -1,4 +1,4 @@
from ayon_core.hosts.maya.api import plugin
from ayon_maya.api import plugin
from ayon_core.lib import BoolDef

View file

@ -1,4 +1,4 @@
from ayon_core.hosts.maya.api import (
from ayon_maya.api import (
plugin,
lib
)

View file

@ -1,4 +1,4 @@
from ayon_core.hosts.maya.api import (
from ayon_maya.api import (
lib,
plugin
)

View file

@ -1,4 +1,4 @@
from ayon_core.hosts.maya.api import plugin, lib
from ayon_maya.api import plugin, lib
from ayon_core.lib import (
BoolDef,
EnumDef,

View file

@ -1,4 +1,4 @@
from ayon_core.hosts.maya.api import plugin
from ayon_maya.api import plugin
class CreateMayaScene(plugin.MayaCreator):

View file

@ -1,4 +1,4 @@
from ayon_core.hosts.maya.api import plugin
from ayon_maya.api import plugin
from ayon_core.lib import (
BoolDef,
TextDef

View file

@ -8,7 +8,7 @@ from ayon_api import (
)
from maya import cmds # noqa: F401
from ayon_core.hosts.maya.api import plugin
from ayon_maya.api import plugin
from ayon_core.lib import BoolDef, EnumDef, TextDef
from ayon_core.pipeline import (
Creator,

View file

@ -1,4 +1,4 @@
from ayon_core.hosts.maya.api import plugin
from ayon_maya.api import plugin
from ayon_core.lib import (
BoolDef,
EnumDef

View file

@ -1,4 +1,4 @@
from ayon_core.hosts.maya.api import plugin, lib
from ayon_maya.api import plugin, lib
from ayon_core.lib import (
BoolDef,
NumberDef,

View file

@ -1,4 +1,4 @@
from ayon_core.hosts.maya.api import plugin, lib
from ayon_maya.api import plugin, lib
from ayon_core.lib import (
BoolDef,
NumberDef,

View file

@ -1,4 +1,4 @@
from ayon_core.hosts.maya.api import plugin, lib
from ayon_maya.api import plugin, lib
from ayon_core.lib import (
BoolDef,
NumberDef,

View file

@ -1,4 +1,4 @@
from ayon_core.hosts.maya.api import (
from ayon_maya.api import (
lib,
plugin
)

View file

@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""Creator of Redshift proxy product types."""
from ayon_core.hosts.maya.api import plugin, lib
from ayon_maya.api import plugin, lib
from ayon_core.lib import BoolDef

View file

@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""Create ``Render`` instance in Maya."""
from ayon_core.hosts.maya.api import (
from ayon_maya.api import (
lib_rendersettings,
plugin
)

View file

@ -1,4 +1,4 @@
from ayon_core.hosts.maya.api import plugin
from ayon_maya.api import plugin
from ayon_core.pipeline import CreatorError

View file

@ -3,7 +3,7 @@ import json
from maya import cmds
import ayon_api
from ayon_core.hosts.maya.api import (
from ayon_maya.api import (
lib,
plugin
)

View file

@ -1,6 +1,6 @@
from maya import cmds
from ayon_core.hosts.maya.api import plugin
from ayon_maya.api import plugin
class CreateRig(plugin.MayaCreator):

View file

@ -1,4 +1,4 @@
from ayon_core.hosts.maya.api import plugin
from ayon_maya.api import plugin
from ayon_core.lib import BoolDef

View file

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
"""Creator for Unreal Skeletal Meshes."""
from ayon_core.hosts.maya.api import plugin, lib
from ayon_maya.api import plugin, lib
from ayon_core.lib import (
BoolDef,
TextDef

View file

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
"""Creator for Unreal Static Meshes."""
from ayon_core.hosts.maya.api import plugin, lib
from ayon_maya.api import plugin, lib
from maya import cmds # noqa

View file

@ -1,4 +1,4 @@
from ayon_core.hosts.maya.api import (
from ayon_maya.api import (
lib,
plugin
)

View file

@ -1,4 +1,4 @@
from ayon_core.hosts.maya.api import (
from ayon_maya.api import (
plugin,
lib
)

View file

@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""Create instance of vrayscene."""
from ayon_core.hosts.maya.api import (
from ayon_maya.api import (
lib_rendersettings,
plugin
)

View file

@ -3,7 +3,7 @@
import ayon_api
from ayon_core.pipeline import CreatedInstance, AutoCreator
from ayon_core.hosts.maya.api import plugin
from ayon_maya.api import plugin
from maya import cmds

View file

@ -1,4 +1,4 @@
from ayon_core.hosts.maya.api import plugin
from ayon_maya.api import plugin
class CreateXgen(plugin.MayaCreator):

View file

@ -1,4 +1,4 @@
from ayon_core.hosts.maya.api import (
from ayon_maya.api import (
lib,
plugin
)

View file

@ -1,6 +1,6 @@
from maya import cmds
from ayon_core.hosts.maya.api import (
from ayon_maya.api import (
lib,
plugin
)

View file

@ -1,7 +1,7 @@
from maya import cmds
from ayon_core.pipeline import InventoryAction, get_repres_contexts
from ayon_core.hosts.maya.api.lib import get_id
from ayon_maya.api.lib import get_id
class ConnectGeometry(InventoryAction):

View file

@ -9,7 +9,7 @@ from ayon_core.pipeline import (
get_repres_contexts,
get_representation_path,
)
from ayon_core.hosts.maya.api.lib import get_container_members, get_id
from ayon_maya.api.lib import get_container_members, get_id
class ConnectYetiRig(InventoryAction):

View file

@ -8,7 +8,7 @@ from ayon_core.pipeline import (
InventoryAction,
get_current_project_name,
)
from ayon_core.hosts.maya.api.lib import (
from ayon_maya.api.lib import (
maintained_selection,
apply_shaders
)

View file

@ -1,7 +1,7 @@
from maya import cmds
from ayon_core.pipeline import InventoryAction
from ayon_core.hosts.maya.api.lib import get_reference_node
from ayon_maya.api.lib import get_reference_node
class ImportReference(InventoryAction):

View file

@ -3,7 +3,7 @@ from ayon_core.pipeline import (
get_current_project_name,
)
from ayon_core.pipeline.load import get_representation_contexts_by_ids
from ayon_core.hosts.maya.api.lib import (
from ayon_maya.api.lib import (
create_rig_animation_instance,
get_container_members,
)

View file

@ -1,7 +1,7 @@
from maya import cmds
from ayon_core.pipeline import InventoryAction, registered_host
from ayon_core.hosts.maya.api.lib import get_container_members
from ayon_maya.api.lib import get_container_members
class SelectInScene(InventoryAction):

View file

@ -1,4 +1,4 @@
import ayon_core.hosts.maya.api.plugin
import ayon_maya.api.plugin
import maya.cmds as cmds
@ -14,7 +14,7 @@ def _process_reference(file_url, name, namespace, options):
Returns:
list: list of object nodes
"""
from ayon_core.hosts.maya.api.lib import unique_namespace
from ayon_maya.api.lib import unique_namespace
# Get name from asset being loaded
# Assuming name is product name from the animation, we split the number
# suffix from the name to ensure the namespace is unique
@ -43,7 +43,7 @@ def _process_reference(file_url, name, namespace, options):
return nodes
class AbcLoader(ayon_core.hosts.maya.api.plugin.ReferenceLoader):
class AbcLoader(ayon_maya.api.plugin.ReferenceLoader):
"""Loader to reference an Alembic file"""
product_types = {
@ -74,7 +74,7 @@ class AbcLoader(ayon_core.hosts.maya.api.plugin.ReferenceLoader):
return nodes
class FbxLoader(ayon_core.hosts.maya.api.plugin.ReferenceLoader):
class FbxLoader(ayon_maya.api.plugin.ReferenceLoader):
"""Loader to reference an Fbx files"""
product_types = {

View file

@ -3,11 +3,11 @@
"""
import qargparse
from ayon_core.pipeline import load
from ayon_core.hosts.maya.api.lib import (
from ayon_maya.api.lib import (
maintained_selection,
get_custom_namespace
)
import ayon_core.hosts.maya.api.plugin
import ayon_maya.api.plugin
class SetFrameRangeLoader(load.LoaderPlugin):
@ -85,7 +85,7 @@ class SetFrameRangeWithHandlesLoader(load.LoaderPlugin):
animationEndTime=end)
class ImportMayaLoader(ayon_core.hosts.maya.api.plugin.Loader):
class ImportMayaLoader(ayon_maya.api.plugin.Loader):
"""Import action for Maya (unmanaged)
Warning:

View file

@ -8,14 +8,14 @@ from ayon_core.pipeline import (
load,
get_representation_path
)
from ayon_core.hosts.maya.api.lib import (
from ayon_maya.api.lib import (
unique_namespace,
get_attribute_input,
maintained_selection,
get_fps_for_current_context
)
from ayon_core.hosts.maya.api.pipeline import containerise
from ayon_core.hosts.maya.api.plugin import get_load_color_for_product_type
from ayon_maya.api.pipeline import containerise
from ayon_maya.api.plugin import get_load_color_for_product_type
def is_sequence(files):

View file

@ -5,7 +5,7 @@ from ayon_core.pipeline import (
load,
registered_host
)
from ayon_core.hosts.maya.api.workfile_template_builder import (
from ayon_maya.api.workfile_template_builder import (
MayaTemplateBuilder
)

View file

@ -5,9 +5,9 @@ from ayon_core.pipeline import (
remove_container
)
from ayon_core.hosts.maya.api.pipeline import containerise
from ayon_core.hosts.maya.api.lib import unique_namespace
from ayon_core.hosts.maya.api import setdress
from ayon_maya.api.pipeline import containerise
from ayon_maya.api.lib import unique_namespace
from ayon_maya.api import setdress
class AssemblyLoader(load.LoaderPlugin):

View file

@ -4,8 +4,8 @@ from ayon_core.pipeline import (
load,
get_representation_path,
)
from ayon_core.hosts.maya.api.pipeline import containerise
from ayon_core.hosts.maya.api.lib import unique_namespace, get_container_members
from ayon_maya.api.pipeline import containerise
from ayon_maya.api.lib import unique_namespace, get_container_members
class AudioLoader(load.LoaderPlugin):

View file

@ -1,13 +1,13 @@
import maya.cmds as cmds
from ayon_core.hosts.maya.api.pipeline import containerise
from ayon_core.hosts.maya.api.lib import unique_namespace
from ayon_maya.api.pipeline import containerise
from ayon_maya.api.lib import unique_namespace
from ayon_core.pipeline import (
load,
get_representation_path
)
from ayon_core.settings import get_project_settings
from ayon_core.hosts.maya.api.plugin import get_load_color_for_product_type
from ayon_maya.api.plugin import get_load_color_for_product_type
class GpuCacheLoader(load.LoaderPlugin):

View file

@ -13,8 +13,8 @@ from ayon_core.pipeline.colorspace import (
)
from ayon_core.settings import get_project_settings
from ayon_core.hosts.maya.api.pipeline import containerise
from ayon_core.hosts.maya.api.lib import (
from ayon_maya.api.pipeline import containerise
from ayon_maya.api.lib import (
unique_namespace,
namespaced
)

View file

@ -4,8 +4,8 @@ from ayon_core.pipeline import (
load,
get_representation_path,
)
from ayon_core.hosts.maya.api.pipeline import containerise
from ayon_core.hosts.maya.api.lib import (
from ayon_maya.api.pipeline import containerise
from ayon_maya.api.lib import (
unique_namespace,
namespaced,
pairwise,

View file

@ -7,14 +7,14 @@ from qtpy import QtWidgets
from ayon_api import get_representation_by_name
from ayon_core.pipeline import get_representation_path
import ayon_core.hosts.maya.api.plugin
from ayon_core.hosts.maya.api import lib
from ayon_core.hosts.maya.api.lib import get_reference_node
import ayon_maya.api.plugin
from ayon_maya.api import lib
from ayon_maya.api.lib import get_reference_node
from ayon_core.tools.utils import ScrollMessageBox
class LookLoader(ayon_core.hosts.maya.api.plugin.ReferenceLoader):
class LookLoader(ayon_maya.api.plugin.ReferenceLoader):
"""Specific loader for lookdev"""
product_types = {"look"}

View file

@ -6,11 +6,11 @@ from ayon_core.pipeline import (
get_representation_path,
)
from ayon_core.pipeline.load import get_representation_path_from_context
from ayon_core.hosts.maya.api.lib import (
from ayon_maya.api.lib import (
namespaced,
unique_namespace
)
from ayon_core.hosts.maya.api.pipeline import containerise
from ayon_maya.api.pipeline import containerise
class MayaUsdLoader(load.LoaderPlugin):

View file

@ -9,12 +9,12 @@ from ayon_core.pipeline import (
load,
get_representation_path
)
from ayon_core.hosts.maya.api.lib import (
from ayon_maya.api.lib import (
maintained_selection,
namespaced,
unique_namespace
)
from ayon_core.hosts.maya.api.pipeline import containerise
from ayon_maya.api.pipeline import containerise
class MultiverseUsdLoader(load.LoaderPlugin):

View file

@ -10,10 +10,10 @@ from ayon_core.pipeline import (
load,
get_representation_path
)
from ayon_core.hosts.maya.api.lib import (
from ayon_maya.api.lib import (
maintained_selection
)
from ayon_core.hosts.maya.api.pipeline import containerise
from ayon_maya.api.pipeline import containerise
class MultiverseUsdOverLoader(load.LoaderPlugin):

View file

@ -10,13 +10,13 @@ from ayon_core.pipeline import (
load,
get_representation_path
)
from ayon_core.hosts.maya.api.lib import (
from ayon_maya.api.lib import (
namespaced,
maintained_selection,
unique_namespace
)
from ayon_core.hosts.maya.api.pipeline import containerise
from ayon_core.hosts.maya.api.plugin import get_load_color_for_product_type
from ayon_maya.api.pipeline import containerise
from ayon_maya.api.plugin import get_load_color_for_product_type
class RedshiftProxyLoader(load.LoaderPlugin):

View file

@ -5,8 +5,8 @@ from maya import cmds
import qargparse
from ayon_core.settings import get_project_settings
from ayon_core.hosts.maya.api import plugin
from ayon_core.hosts.maya.api.lib import (
from ayon_maya.api import plugin
from ayon_maya.api.lib import (
maintained_selection,
get_container_members,
parent_nodes,

View file

@ -16,8 +16,8 @@ from ayon_core.pipeline import (
load,
get_representation_path
)
from ayon_core.hosts.maya.api import lib
from ayon_core.hosts.maya.api.pipeline import containerise
from ayon_maya.api import lib
from ayon_maya.api.pipeline import containerise
from maya import cmds
import maya.app.renderSetup.model.renderSetup as renderSetup

View file

@ -5,7 +5,7 @@ from ayon_core.pipeline import (
load,
get_representation_path
)
from ayon_core.hosts.maya.api.plugin import get_load_color_for_product_type
from ayon_maya.api.plugin import get_load_color_for_product_type
# TODO aiVolume doesn't automatically set velocity fps correctly, set manual?
@ -22,8 +22,8 @@ class LoadVDBtoArnold(load.LoaderPlugin):
def load(self, context, name, namespace, data):
from maya import cmds
from ayon_core.hosts.maya.api.pipeline import containerise
from ayon_core.hosts.maya.api.lib import unique_namespace
from ayon_maya.api.pipeline import containerise
from ayon_maya.api.lib import unique_namespace
product_type = context["product"]["productType"]

View file

@ -5,7 +5,7 @@ from ayon_core.pipeline import (
load,
get_representation_path
)
from ayon_core.hosts.maya.api.plugin import get_load_color_for_product_type
from ayon_maya.api.plugin import get_load_color_for_product_type
class LoadVDBtoRedShift(load.LoaderPlugin):
@ -28,8 +28,8 @@ class LoadVDBtoRedShift(load.LoaderPlugin):
def load(self, context, name=None, namespace=None, data=None):
from maya import cmds
from ayon_core.hosts.maya.api.pipeline import containerise
from ayon_core.hosts.maya.api.lib import unique_namespace
from ayon_maya.api.pipeline import containerise
from ayon_maya.api.lib import unique_namespace
product_type = context["product"]["productType"]

View file

@ -5,7 +5,7 @@ from ayon_core.pipeline import (
load,
get_representation_path
)
from ayon_core.hosts.maya.api.plugin import get_load_color_for_product_type
from ayon_maya.api.plugin import get_load_color_for_product_type
from maya import cmds
@ -86,8 +86,8 @@ class LoadVDBtoVRay(load.LoaderPlugin):
def load(self, context, name, namespace, data):
from ayon_core.hosts.maya.api.lib import unique_namespace
from ayon_core.hosts.maya.api.pipeline import containerise
from ayon_maya.api.lib import unique_namespace
from ayon_maya.api.pipeline import containerise
path = self.filepath_from_context(context)
assert os.path.exists(path), (
@ -159,7 +159,7 @@ class LoadVDBtoVRay(load.LoaderPlugin):
def _set_path(self, grid_node, path, show_preset_popup=True):
from ayon_core.hosts.maya.api.lib import attribute_values
from ayon_maya.api.lib import attribute_values
from maya import cmds
def _get_filename_from_folder(path):

View file

@ -15,13 +15,13 @@ from ayon_core.pipeline import (
load,
get_representation_path,
)
from ayon_core.hosts.maya.api.lib import (
from ayon_maya.api.lib import (
maintained_selection,
namespaced,
unique_namespace
)
from ayon_core.hosts.maya.api.pipeline import containerise
from ayon_core.hosts.maya.api.plugin import get_load_color_for_product_type
from ayon_maya.api.pipeline import containerise
from ayon_maya.api.plugin import get_load_color_for_product_type
class VRayProxyLoader(load.LoaderPlugin):

View file

@ -5,13 +5,13 @@ from ayon_core.pipeline import (
load,
get_representation_path
)
from ayon_core.hosts.maya.api.lib import (
from ayon_maya.api.lib import (
maintained_selection,
namespaced,
unique_namespace
)
from ayon_core.hosts.maya.api.pipeline import containerise
from ayon_core.hosts.maya.api.plugin import get_load_color_for_product_type
from ayon_maya.api.pipeline import containerise
from ayon_maya.api.plugin import get_load_color_for_product_type
class VRaySceneLoader(load.LoaderPlugin):

View file

@ -6,18 +6,18 @@ import xgenm
from qtpy import QtWidgets
import ayon_core.hosts.maya.api.plugin
from ayon_core.hosts.maya.api.lib import (
import ayon_maya.api.plugin
from ayon_maya.api.lib import (
maintained_selection,
get_container_members,
attribute_values,
write_xgen_file
)
from ayon_core.hosts.maya.api import current_file
from ayon_maya.api import current_file
from ayon_core.pipeline import get_representation_path
class XgenLoader(ayon_core.hosts.maya.api.plugin.ReferenceLoader):
class XgenLoader(ayon_maya.api.plugin.ReferenceLoader):
"""Load Xgen as reference"""
product_types = {"xgen"}

View file

@ -11,10 +11,10 @@ from ayon_core.pipeline import (
load,
get_representation_path
)
from ayon_core.hosts.maya.api import lib
from ayon_core.hosts.maya.api.yeti import create_yeti_variable
from ayon_core.hosts.maya.api.pipeline import containerise
from ayon_core.hosts.maya.api.plugin import get_load_color_for_product_type
from ayon_maya.api import lib
from ayon_maya.api.yeti import create_yeti_variable
from ayon_maya.api.pipeline import containerise
from ayon_maya.api.plugin import get_load_color_for_product_type
# Do not reset these values on update but only apply on first load

View file

@ -2,8 +2,8 @@ from typing import List
import maya.cmds as cmds
from ayon_core.hosts.maya.api import plugin
from ayon_core.hosts.maya.api import lib
from ayon_maya.api import plugin
from ayon_maya.api import lib
from ayon_core.pipeline import registered_host
from ayon_core.pipeline.create import CreateContext

View file

@ -1,7 +1,7 @@
from maya import cmds
import pyblish.api
from ayon_core.hosts.maya.api.lib import get_all_children
from ayon_maya.api.lib import get_all_children
class CollectArnoldSceneSource(pyblish.api.InstancePlugin):

View file

@ -2,8 +2,8 @@ from collections import defaultdict
import pyblish.api
from maya import cmds, mel
from ayon_core.hosts.maya import api
from ayon_core.hosts.maya.api import lib
from ayon_maya import api
from ayon_maya.api import lib
# TODO : Publish of assembly: -unique namespace for all assets, VALIDATOR!

Some files were not shown because too many files have changed in this diff Show more