mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
:recyce: move maya addon
This commit is contained in:
parent
a25bda81a1
commit
d92385c3d4
300 changed files with 416 additions and 404 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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__)
|
||||
|
||||
|
|
@ -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.
|
||||
|
|
@ -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:
|
||||
|
|
@ -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
|
||||
|
|
@ -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):
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
||||
|
|
@ -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")
|
||||
|
|
@ -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"]
|
||||
|
||||
|
|
@ -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,
|
||||
|
|
@ -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):
|
||||
|
|
@ -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.
|
||||
|
|
@ -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,
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
from maya import cmds
|
||||
|
||||
from ayon_core.hosts.maya.api import (
|
||||
from ayon_maya.api import (
|
||||
lib,
|
||||
plugin
|
||||
)
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
from ayon_core.hosts.maya.api import plugin
|
||||
from ayon_maya.api import plugin
|
||||
|
||||
|
||||
class CreateAssembly(plugin.MayaCreator):
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
from ayon_core.hosts.maya.api import (
|
||||
from ayon_maya.api import (
|
||||
lib,
|
||||
plugin
|
||||
)
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
from ayon_core.hosts.maya.api import plugin
|
||||
from ayon_maya.api import plugin
|
||||
from ayon_core.lib import BoolDef
|
||||
|
||||
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
from ayon_core.hosts.maya.api import (
|
||||
from ayon_maya.api import (
|
||||
plugin,
|
||||
lib
|
||||
)
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
from ayon_core.hosts.maya.api import (
|
||||
from ayon_maya.api import (
|
||||
lib,
|
||||
plugin
|
||||
)
|
||||
|
|
@ -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,
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
from ayon_core.hosts.maya.api import plugin
|
||||
from ayon_maya.api import plugin
|
||||
|
||||
|
||||
class CreateMayaScene(plugin.MayaCreator):
|
||||
|
|
@ -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
|
||||
|
|
@ -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,
|
||||
|
|
@ -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
|
||||
|
|
@ -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,
|
||||
|
|
@ -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,
|
||||
|
|
@ -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,
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
from ayon_core.hosts.maya.api import (
|
||||
from ayon_maya.api import (
|
||||
lib,
|
||||
plugin
|
||||
)
|
||||
|
|
@ -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
|
||||
|
||||
|
||||
|
|
@ -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
|
||||
)
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
from ayon_core.hosts.maya.api import plugin
|
||||
from ayon_maya.api import plugin
|
||||
from ayon_core.pipeline import CreatorError
|
||||
|
||||
|
||||
|
|
@ -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
|
||||
)
|
||||
|
|
@ -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):
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
from ayon_core.hosts.maya.api import plugin
|
||||
from ayon_maya.api import plugin
|
||||
from ayon_core.lib import BoolDef
|
||||
|
||||
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
||||
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
from ayon_core.hosts.maya.api import (
|
||||
from ayon_maya.api import (
|
||||
lib,
|
||||
plugin
|
||||
)
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
from ayon_core.hosts.maya.api import (
|
||||
from ayon_maya.api import (
|
||||
plugin,
|
||||
lib
|
||||
)
|
||||
|
|
@ -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
|
||||
)
|
||||
|
|
@ -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
|
||||
|
||||
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
from ayon_core.hosts.maya.api import plugin
|
||||
from ayon_maya.api import plugin
|
||||
|
||||
|
||||
class CreateXgen(plugin.MayaCreator):
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
from ayon_core.hosts.maya.api import (
|
||||
from ayon_maya.api import (
|
||||
lib,
|
||||
plugin
|
||||
)
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
from maya import cmds
|
||||
|
||||
from ayon_core.hosts.maya.api import (
|
||||
from ayon_maya.api import (
|
||||
lib,
|
||||
plugin
|
||||
)
|
||||
|
|
@ -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):
|
||||
|
|
@ -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):
|
||||
|
|
@ -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
|
||||
)
|
||||
|
|
@ -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):
|
||||
|
|
@ -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,
|
||||
)
|
||||
|
|
@ -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):
|
||||
|
|
@ -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 = {
|
||||
|
|
@ -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:
|
||||
|
|
@ -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):
|
||||
|
|
@ -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
|
||||
)
|
||||
|
||||
|
|
@ -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):
|
||||
|
|
@ -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):
|
||||
|
|
@ -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):
|
||||
|
|
@ -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
|
||||
)
|
||||
|
|
@ -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,
|
||||
|
|
@ -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"}
|
||||
|
|
@ -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):
|
||||
|
|
@ -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):
|
||||
|
|
@ -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):
|
||||
|
|
@ -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):
|
||||
|
|
@ -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,
|
||||
|
|
@ -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
|
||||
|
|
@ -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"]
|
||||
|
||||
|
|
@ -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"]
|
||||
|
||||
|
|
@ -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):
|
||||
|
|
@ -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):
|
||||
|
|
@ -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):
|
||||
|
|
@ -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"}
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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):
|
||||
|
|
@ -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
Loading…
Add table
Add a link
Reference in a new issue