mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
change maya plugin imports
This commit is contained in:
parent
afb56dbd9a
commit
3e22810217
108 changed files with 202 additions and 202 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import avalon.maya
|
||||
from pype.hosts.maya import lib
|
||||
from pype.hosts.maya.api import lib
|
||||
|
||||
|
||||
class CreateAnimation(avalon.maya.Creator):
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
from collections import OrderedDict
|
||||
|
||||
import avalon.maya
|
||||
from pype.hosts.maya import lib
|
||||
from pype.hosts.maya.api import lib
|
||||
|
||||
from maya import cmds
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import avalon.maya
|
||||
from pype.hosts.maya import lib
|
||||
from pype.hosts.maya.api import lib
|
||||
|
||||
|
||||
class CreateCamera(avalon.maya.Creator):
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import avalon.maya
|
||||
from pype.hosts.maya import lib
|
||||
from pype.hosts.maya.api import lib
|
||||
|
||||
|
||||
class CreateLook(avalon.maya.Creator):
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import avalon.maya
|
||||
from pype.hosts.maya import lib
|
||||
from pype.hosts.maya.api import lib
|
||||
|
||||
|
||||
class CreatePointCache(avalon.maya.Creator):
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import requests
|
|||
from maya import cmds
|
||||
import maya.app.renderSetup.model.renderSetup as renderSetup
|
||||
|
||||
from pype.hosts.maya import lib
|
||||
from pype.hosts.maya.api import lib
|
||||
from pype.api import get_system_settings
|
||||
import avalon.maya
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import avalon.maya
|
||||
from pype.hosts.maya import lib
|
||||
from pype.hosts.maya.api import lib
|
||||
from maya import cmds
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
from collections import OrderedDict
|
||||
import avalon.maya
|
||||
from pype.hosts.maya import lib
|
||||
from pype.hosts.maya.api import lib
|
||||
|
||||
|
||||
class CreateReview(avalon.maya.Creator):
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
from maya import cmds
|
||||
|
||||
from pype.hosts.maya import lib
|
||||
from pype.hosts.maya.api import lib
|
||||
import avalon.maya
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
from collections import OrderedDict
|
||||
|
||||
import avalon.maya
|
||||
from pype.hosts.maya import lib
|
||||
from pype.hosts.maya.api import lib
|
||||
|
||||
|
||||
class CreateYetiCache(avalon.maya.Creator):
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
from maya import cmds
|
||||
|
||||
from pype.hosts.maya import lib
|
||||
from pype.hosts.maya.api import lib
|
||||
import avalon.maya
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import pype.hosts.maya.plugin
|
||||
import pype.hosts.maya.api.plugin
|
||||
|
||||
|
||||
class AbcLoader(pype.hosts.maya.plugin.ReferenceLoader):
|
||||
class AbcLoader(pype.hosts.maya.api.plugin.ReferenceLoader):
|
||||
"""Specific loader of Alembic for the avalon.animation family"""
|
||||
|
||||
families = ["animation",
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
from avalon import api
|
||||
import pype.hosts.maya.plugin
|
||||
import pype.hosts.maya.api.plugin
|
||||
import os
|
||||
from pype.api import get_project_settings
|
||||
import clique
|
||||
|
||||
|
||||
class AssProxyLoader(pype.hosts.maya.plugin.ReferenceLoader):
|
||||
class AssProxyLoader(pype.hosts.maya.api.plugin.ReferenceLoader):
|
||||
"""Load the Proxy"""
|
||||
|
||||
families = ["ass"]
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
from avalon import api
|
||||
import pype.hosts.maya.plugin
|
||||
import pype.hosts.maya.api.plugin
|
||||
import os
|
||||
from pype.api import get_project_settings
|
||||
reload(config)
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
import pype.hosts.maya.plugin
|
||||
import pype.hosts.maya.api.plugin
|
||||
from avalon import api, io
|
||||
import json
|
||||
import pype.hosts.maya.lib
|
||||
import pype.hosts.maya.api.lib
|
||||
from collections import defaultdict
|
||||
from pype.widgets.message_window import ScrollMessageBox
|
||||
from Qt import QtWidgets
|
||||
|
||||
|
||||
class LookLoader(pype.hosts.maya.plugin.ReferenceLoader):
|
||||
class LookLoader(pype.hosts.maya.api.plugin.ReferenceLoader):
|
||||
"""Specific loader for lookdev"""
|
||||
|
||||
families = ["look"]
|
||||
|
|
@ -120,7 +120,7 @@ class LookLoader(pype.hosts.maya.plugin.ReferenceLoader):
|
|||
cmds.file(cr=reference_node) # cleanReference
|
||||
|
||||
# reapply shading groups from json representation on orig nodes
|
||||
pype.hosts.maya.lib.apply_shaders(relationships,
|
||||
pype.hosts.maya.api.lib.apply_shaders(relationships,
|
||||
shader_nodes,
|
||||
orig_nodes)
|
||||
|
||||
|
|
@ -138,8 +138,8 @@ class LookLoader(pype.hosts.maya.plugin.ReferenceLoader):
|
|||
# region compute lookup
|
||||
nodes_by_id = defaultdict(list)
|
||||
for n in nodes:
|
||||
nodes_by_id[pype.hosts.maya.lib.get_id(n)].append(n)
|
||||
pype.hosts.maya.lib.apply_attributes(attributes, nodes_by_id)
|
||||
nodes_by_id[pype.hosts.maya.api.lib.get_id(n)].append(n)
|
||||
pype.hosts.maya.api.lib.apply_attributes(attributes, nodes_by_id)
|
||||
|
||||
# Update metadata
|
||||
cmds.setAttr("{}.representation".format(node),
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
import pype.hosts.maya.plugin
|
||||
import pype.hosts.maya.api.plugin
|
||||
from avalon import api, maya
|
||||
from maya import cmds
|
||||
import os
|
||||
from pype.api import get_project_settings
|
||||
|
||||
|
||||
class ReferenceLoader(pype.hosts.maya.plugin.ReferenceLoader):
|
||||
class ReferenceLoader(pype.hosts.maya.api.plugin.ReferenceLoader):
|
||||
"""Load the model"""
|
||||
|
||||
families = ["model",
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import sys
|
|||
|
||||
from avalon import api
|
||||
from avalon.maya import lib
|
||||
from pype.hosts.maya import lib as pypelib
|
||||
from pype.hosts.maya.api import lib as pypelib
|
||||
|
||||
from maya import cmds
|
||||
import maya.app.renderSetup.model.renderSetup as renderSetup
|
||||
|
|
@ -32,7 +32,7 @@ class RenderSetupLoader(api.Loader):
|
|||
def load(self, context, name, namespace, data):
|
||||
"""Load RenderSetup settings."""
|
||||
from avalon.maya.pipeline import containerise
|
||||
# from pype.hosts.maya.lib import namespaced
|
||||
# from pype.hosts.maya.api.lib import namespaced
|
||||
|
||||
asset = context['asset']['name']
|
||||
namespace = namespace or lib.unique_namespace(
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ class VRayProxyLoader(api.Loader):
|
|||
def load(self, context, name, namespace, data):
|
||||
|
||||
from avalon.maya.pipeline import containerise
|
||||
from pype.hosts.maya.lib import namespaced
|
||||
from pype.hosts.maya.api.lib import namespaced
|
||||
|
||||
try:
|
||||
family = context["representation"]["context"]["family"]
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ from maya import cmds
|
|||
|
||||
from avalon import api, io
|
||||
from avalon.maya import lib as avalon_lib, pipeline
|
||||
from pype.hosts.maya import lib
|
||||
from pype.hosts.maya.api import lib
|
||||
from pype.api import get_project_settings
|
||||
from pprint import pprint
|
||||
|
||||
|
|
|
|||
|
|
@ -2,11 +2,11 @@ import os
|
|||
from collections import defaultdict
|
||||
|
||||
from pype.api import get_project_settings
|
||||
import pype.hosts.maya.plugin
|
||||
from pype.hosts.maya import lib
|
||||
import pype.hosts.maya.api.plugin
|
||||
from pype.hosts.maya.api import lib
|
||||
|
||||
|
||||
class YetiRigLoader(pype.hosts.maya.plugin.ReferenceLoader):
|
||||
class YetiRigLoader(pype.hosts.maya.api.plugin.ReferenceLoader):
|
||||
"""
|
||||
This loader will load Yeti rig. You can select something in scene and if it
|
||||
has same ID as mesh published with rig, their shapes will be linked
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import pyblish.api
|
|||
|
||||
from maya import cmds, mel
|
||||
from avalon import maya as avalon
|
||||
from pype.hosts.maya import lib
|
||||
from pype.hosts.maya.api import lib
|
||||
|
||||
# TODO : Publish of assembly: -unique namespace for all assets, VALIDATOR!
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import glob
|
|||
|
||||
from maya import cmds
|
||||
import pyblish.api
|
||||
from pype.hosts.maya import lib
|
||||
from pype.hosts.maya.api import lib
|
||||
|
||||
SHAPE_ATTRS = ["castsShadows",
|
||||
"receiveShadows",
|
||||
|
|
|
|||
|
|
@ -49,8 +49,8 @@ import maya.app.renderSetup.model.renderSetup as renderSetup
|
|||
import pyblish.api
|
||||
|
||||
from avalon import maya, api
|
||||
from pype.hosts.maya.expected_files import ExpectedFiles
|
||||
from pype.hosts.maya import lib
|
||||
from pype.hosts.maya.api.expected_files import ExpectedFiles
|
||||
from pype.hosts.maya.api import lib
|
||||
|
||||
|
||||
class CollectMayaRender(pyblish.api.ContextPlugin):
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ from maya import cmds
|
|||
|
||||
import pyblish.api
|
||||
|
||||
from pype.hosts.maya import lib
|
||||
from pype.hosts.maya.api import lib
|
||||
|
||||
|
||||
class CollectRenderLayerAOVS(pyblish.api.InstancePlugin):
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import pyblish.api
|
|||
|
||||
from maya import cmds
|
||||
|
||||
from pype.hosts.maya import lib
|
||||
from pype.hosts.maya.api import lib
|
||||
|
||||
|
||||
class CollectRenderableCamera(pyblish.api.InstancePlugin):
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ from maya import cmds
|
|||
|
||||
import pyblish.api
|
||||
|
||||
from pype.hosts.maya import lib
|
||||
from pype.hosts.maya.api import lib
|
||||
|
||||
SETTINGS = {"renderDensity",
|
||||
"renderWidth",
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ from maya import cmds
|
|||
|
||||
import pyblish.api
|
||||
|
||||
from pype.hosts.maya import lib
|
||||
from pype.hosts.maya.api import lib
|
||||
|
||||
|
||||
SETTINGS = {"renderDensity",
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ from maya import cmds
|
|||
|
||||
import avalon.maya
|
||||
import pype.api
|
||||
from pype.hosts.maya.lib import extract_alembic
|
||||
from pype.hosts.maya.api.lib import extract_alembic
|
||||
|
||||
|
||||
class ExtractAnimation(pype.api.Extractor):
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import json
|
|||
import os
|
||||
|
||||
import pype.api
|
||||
from pype.hosts.maya.lib import extract_alembic
|
||||
from pype.hosts.maya.api.lib import extract_alembic
|
||||
|
||||
from maya import cmds
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import contextlib
|
|||
|
||||
import avalon.maya
|
||||
import pype.api
|
||||
from pype.hosts.maya import lib
|
||||
from pype.hosts.maya.api import lib
|
||||
|
||||
|
||||
class ExtractAssProxy(pype.api.Extractor):
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ from maya import cmds
|
|||
import avalon.maya
|
||||
import pype.api
|
||||
|
||||
from pype.hosts.maya import lib
|
||||
from pype.hosts.maya.api import lib
|
||||
|
||||
|
||||
class ExtractCameraAlembic(pype.api.Extractor):
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ from maya import cmds
|
|||
|
||||
import avalon.maya
|
||||
import pype.api
|
||||
from pype.hosts.maya import lib
|
||||
from pype.hosts.maya.api import lib
|
||||
|
||||
|
||||
def massage_ma_file(path):
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ import avalon.maya
|
|||
from avalon import io, api
|
||||
|
||||
import pype.api
|
||||
from pype.hosts.maya import lib
|
||||
from pype.hosts.maya.api import lib
|
||||
|
||||
# Modes for transfer
|
||||
COPY = 1
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ from maya import cmds
|
|||
|
||||
import avalon.maya
|
||||
import pype.api
|
||||
from pype.hosts.maya import lib
|
||||
from pype.hosts.maya.api import lib
|
||||
|
||||
|
||||
class ExtractModel(pype.api.Extractor):
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import contextlib
|
|||
import clique
|
||||
import capture
|
||||
|
||||
from pype.hosts.maya import lib
|
||||
from pype.hosts.maya.api import lib
|
||||
import pype.api
|
||||
|
||||
from maya import cmds
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ from maya import cmds
|
|||
|
||||
import avalon.maya
|
||||
import pype.api
|
||||
from pype.hosts.maya.lib import extract_alembic
|
||||
from pype.hosts.maya.api.lib import extract_alembic
|
||||
|
||||
|
||||
class ExtractAlembic(pype.api.Extractor):
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import glob
|
|||
|
||||
import capture
|
||||
|
||||
from pype.hosts.maya import lib
|
||||
from pype.hosts.maya.api import lib
|
||||
import pype.api
|
||||
|
||||
from maya import cmds
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ from maya import cmds
|
|||
|
||||
import avalon.maya.lib as lib
|
||||
import pype.api
|
||||
import pype.hosts.maya.lib as maya
|
||||
import pype.hosts.maya.api.lib as maya
|
||||
|
||||
|
||||
@contextlib.contextmanager
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ from avalon import api
|
|||
from avalon.vendor import requests
|
||||
|
||||
import pyblish.api
|
||||
from pype.hosts.maya import lib
|
||||
from pype.hosts.maya.api import lib
|
||||
from pype.api import get_system_settings
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import pyblish.api
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
import pype.hosts.maya.api.action
|
||||
|
||||
|
||||
class ValidateAnimationContent(pyblish.api.InstancePlugin):
|
||||
|
|
@ -15,7 +15,7 @@ class ValidateAnimationContent(pyblish.api.InstancePlugin):
|
|||
hosts = ["maya"]
|
||||
families = ["animation"]
|
||||
label = "Animation Content"
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction]
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
@classmethod
|
||||
def get_invalid(cls, instance):
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@ import maya.cmds as cmds
|
|||
|
||||
import pyblish.api
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
from pype.hosts.maya import lib
|
||||
import pype.hosts.maya.api.action
|
||||
from pype.hosts.maya.api import lib
|
||||
|
||||
|
||||
class ValidateOutRelatedNodeIds(pyblish.api.InstancePlugin):
|
||||
|
|
@ -20,7 +20,7 @@ class ValidateOutRelatedNodeIds(pyblish.api.InstancePlugin):
|
|||
families = ['animation', "pointcache"]
|
||||
hosts = ['maya']
|
||||
label = 'Animation Out Set Related Node Ids'
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction, pype.api.RepairAction]
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction, pype.api.RepairAction]
|
||||
|
||||
def process(self, instance):
|
||||
"""Process all meshes"""
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import maya.cmds as cmds
|
|||
|
||||
import pyblish.api
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
import pype.hosts.maya.api.action
|
||||
|
||||
|
||||
class ValidateAssRelativePaths(pyblish.api.InstancePlugin):
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import pyblish.api
|
||||
import maya.cmds as cmds
|
||||
import pype.hosts.maya.action
|
||||
import pype.hosts.maya.api.action
|
||||
|
||||
|
||||
class ValidateAssemblyName(pyblish.api.InstancePlugin):
|
||||
|
|
@ -12,7 +12,7 @@ class ValidateAssemblyName(pyblish.api.InstancePlugin):
|
|||
label = "Validate Assembly Name"
|
||||
order = pyblish.api.ValidatorOrder
|
||||
families = ["assembly"]
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction]
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction]
|
||||
active = False
|
||||
|
||||
@classmethod
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import pyblish.api
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
import pype.hosts.maya.api.action
|
||||
|
||||
|
||||
class ValidateAssemblyNamespaces(pyblish.api.InstancePlugin):
|
||||
|
|
@ -18,7 +18,7 @@ class ValidateAssemblyNamespaces(pyblish.api.InstancePlugin):
|
|||
label = "Validate Assembly Namespaces"
|
||||
order = pyblish.api.ValidatorOrder
|
||||
families = ["assembly"]
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction]
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
def process(self, instance):
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import pype.api
|
|||
|
||||
from maya import cmds
|
||||
|
||||
import pype.hosts.maya.action
|
||||
import pype.hosts.maya.api.action
|
||||
|
||||
|
||||
class ValidateAssemblyModelTransforms(pyblish.api.InstancePlugin):
|
||||
|
|
@ -28,7 +28,7 @@ class ValidateAssemblyModelTransforms(pyblish.api.InstancePlugin):
|
|||
order = pyblish.api.ValidatorOrder + 0.49
|
||||
label = "Assembly Model Transforms"
|
||||
families = ["assembly"]
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction,
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction,
|
||||
pype.api.RepairAction]
|
||||
|
||||
prompt_message = ("You are about to reset the matrix to the default values."
|
||||
|
|
@ -44,7 +44,7 @@ class ValidateAssemblyModelTransforms(pyblish.api.InstancePlugin):
|
|||
@classmethod
|
||||
def get_invalid(cls, instance):
|
||||
|
||||
from pype.hosts.maya import lib
|
||||
from pype.hosts.maya.api import lib
|
||||
|
||||
# Get all transforms in the loaded containers
|
||||
container_roots = cmds.listRelatives(instance.data["hierarchy"],
|
||||
|
|
@ -89,7 +89,7 @@ class ValidateAssemblyModelTransforms(pyblish.api.InstancePlugin):
|
|||
|
||||
"""
|
||||
|
||||
from pype.hosts.maya import lib
|
||||
from pype.hosts.maya.api import lib
|
||||
from avalon.vendor.Qt import QtWidgets
|
||||
|
||||
# Store namespace in variable, cosmetics thingy
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ from maya import cmds
|
|||
|
||||
import pyblish.api
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
import pype.hosts.maya.api.action
|
||||
|
||||
|
||||
class ValidateCameraAttributes(pyblish.api.InstancePlugin):
|
||||
|
|
@ -18,7 +18,7 @@ class ValidateCameraAttributes(pyblish.api.InstancePlugin):
|
|||
families = ['camera']
|
||||
hosts = ['maya']
|
||||
label = 'Camera Attributes'
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction]
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
DEFAULTS = [
|
||||
("filmFitOffset", 0.0),
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ from maya import cmds
|
|||
|
||||
import pyblish.api
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
import pype.hosts.maya.api.action
|
||||
|
||||
|
||||
class ValidateCameraContents(pyblish.api.InstancePlugin):
|
||||
|
|
@ -19,7 +19,7 @@ class ValidateCameraContents(pyblish.api.InstancePlugin):
|
|||
families = ['camera']
|
||||
hosts = ['maya']
|
||||
label = 'Camera Contents'
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction]
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
@classmethod
|
||||
def get_invalid(cls, instance):
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ from maya import cmds
|
|||
|
||||
import pyblish.api
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
import pype.hosts.maya.api.action
|
||||
|
||||
|
||||
class ValidateColorSets(pyblish.api.Validator):
|
||||
|
|
@ -18,7 +18,7 @@ class ValidateColorSets(pyblish.api.Validator):
|
|||
families = ['model']
|
||||
category = 'geometry'
|
||||
label = 'Mesh ColorSets'
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction,
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction,
|
||||
pype.api.RepairAction]
|
||||
optional = True
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import pyblish.api
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
import pype.hosts.maya.api.action
|
||||
|
||||
|
||||
class ValidateInstanceHasMembers(pyblish.api.InstancePlugin):
|
||||
|
|
@ -9,7 +9,7 @@ class ValidateInstanceHasMembers(pyblish.api.InstancePlugin):
|
|||
order = pype.api.ValidateContentsOrder
|
||||
hosts = ["maya"]
|
||||
label = 'Instance has members'
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction]
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
@classmethod
|
||||
def get_invalid(cls, instance):
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import maya.cmds as cmds
|
||||
|
||||
import pyblish.api
|
||||
from pype.hosts.maya import lib
|
||||
from pype.hosts.maya.api import lib
|
||||
|
||||
|
||||
class ValidateInstancerContent(pyblish.api.InstancePlugin):
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@ from maya import cmds
|
|||
|
||||
import pyblish.api
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
from pype.hosts.maya import lib
|
||||
import pype.hosts.maya.api.action
|
||||
from pype.hosts.maya.api import lib
|
||||
|
||||
|
||||
class ValidateJointsHidden(pyblish.api.InstancePlugin):
|
||||
|
|
@ -23,7 +23,7 @@ class ValidateJointsHidden(pyblish.api.InstancePlugin):
|
|||
category = 'rig'
|
||||
version = (0, 1, 0)
|
||||
label = "Joints Hidden"
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction,
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction,
|
||||
pype.api.RepairAction]
|
||||
|
||||
@staticmethod
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import pyblish.api
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
import pype.hosts.maya.api.action
|
||||
|
||||
|
||||
class ValidateLookContents(pyblish.api.InstancePlugin):
|
||||
|
|
@ -21,7 +21,7 @@ class ValidateLookContents(pyblish.api.InstancePlugin):
|
|||
families = ['look']
|
||||
hosts = ['maya']
|
||||
label = 'Look Data Contents'
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction]
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
def process(self, instance):
|
||||
"""Process all the nodes in the instance"""
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ from maya import cmds
|
|||
|
||||
import pyblish.api
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
import pype.hosts.maya.api.action
|
||||
|
||||
|
||||
class ValidateLookIdReferenceEdits(pyblish.api.InstancePlugin):
|
||||
|
|
@ -20,7 +20,7 @@ class ValidateLookIdReferenceEdits(pyblish.api.InstancePlugin):
|
|||
families = ['look']
|
||||
hosts = ['maya']
|
||||
label = 'Look Id Reference Edits'
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction,
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction,
|
||||
pype.api.RepairAction]
|
||||
|
||||
def process(self, instance):
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ from collections import defaultdict
|
|||
|
||||
import pyblish.api
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
import pype.hosts.maya.api.action
|
||||
|
||||
|
||||
class ValidateUniqueRelationshipMembers(pyblish.api.InstancePlugin):
|
||||
|
|
@ -25,8 +25,8 @@ class ValidateUniqueRelationshipMembers(pyblish.api.InstancePlugin):
|
|||
hosts = ['maya']
|
||||
families = ['look']
|
||||
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction,
|
||||
pype.hosts.maya.action.GenerateUUIDsOnInvalidAction]
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction,
|
||||
pype.hosts.maya.api.action.GenerateUUIDsOnInvalidAction]
|
||||
|
||||
def process(self, instance):
|
||||
"""Process all meshes"""
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ from maya import cmds
|
|||
|
||||
import pyblish.api
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
import pype.hosts.maya.api.action
|
||||
|
||||
|
||||
class ValidateLookNoDefaultShaders(pyblish.api.InstancePlugin):
|
||||
|
|
@ -27,7 +27,7 @@ class ValidateLookNoDefaultShaders(pyblish.api.InstancePlugin):
|
|||
families = ['look']
|
||||
hosts = ['maya']
|
||||
label = 'Look No Default Shaders'
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction]
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
DEFAULT_SHADERS = {"lambert1", "initialShadingGroup",
|
||||
"initialParticleSE", "particleCloud1"}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import pype.hosts.maya.action
|
||||
from pype.hosts.maya import lib
|
||||
import pype.hosts.maya.api.action
|
||||
from pype.hosts.maya.api import lib
|
||||
|
||||
import pyblish.api
|
||||
import pype.api
|
||||
|
|
@ -42,7 +42,7 @@ class ValidateLookSets(pyblish.api.InstancePlugin):
|
|||
families = ['look']
|
||||
hosts = ['maya']
|
||||
label = 'Look Sets'
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction]
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
def process(self, instance):
|
||||
"""Process all the nodes in the instance"""
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ from maya import cmds
|
|||
|
||||
import pyblish.api
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
import pype.hosts.maya.api.action
|
||||
|
||||
|
||||
class ValidateShadingEngine(pyblish.api.InstancePlugin):
|
||||
|
|
@ -16,7 +16,7 @@ class ValidateShadingEngine(pyblish.api.InstancePlugin):
|
|||
hosts = ["maya"]
|
||||
label = "Look Shading Engine Naming"
|
||||
actions = [
|
||||
pype.hosts.maya.action.SelectInvalidAction, pype.api.RepairAction
|
||||
pype.hosts.maya.api.action.SelectInvalidAction, pype.api.RepairAction
|
||||
]
|
||||
|
||||
# The default connections to check
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ from maya import cmds
|
|||
|
||||
import pyblish.api
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
import pype.hosts.maya.api.action
|
||||
|
||||
|
||||
class ValidateSingleShader(pyblish.api.InstancePlugin):
|
||||
|
|
@ -16,7 +16,7 @@ class ValidateSingleShader(pyblish.api.InstancePlugin):
|
|||
families = ['look']
|
||||
hosts = ['maya']
|
||||
label = 'Look Single Shader Per Shape'
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction]
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
# The default connections to check
|
||||
def process(self, instance):
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import maya.cmds as cmds
|
|||
import pyblish.api
|
||||
import pype.api
|
||||
from pype import lib
|
||||
import pype.hosts.maya.lib as mayalib
|
||||
import pype.hosts.maya.api.lib as mayalib
|
||||
from math import ceil
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import pymel.core as pc
|
|||
from maya import cmds
|
||||
import pyblish.api
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
import pype.hosts.maya.api.action
|
||||
from avalon import maya
|
||||
|
||||
|
||||
|
|
@ -19,7 +19,7 @@ class ValidateMeshArnoldAttributes(pyblish.api.InstancePlugin):
|
|||
category = "geometry"
|
||||
label = "Mesh Arnold Attributes"
|
||||
actions = [
|
||||
pype.hosts.maya.action.SelectInvalidAction,
|
||||
pype.hosts.maya.api.action.SelectInvalidAction,
|
||||
pype.api.RepairAction
|
||||
]
|
||||
optional = True
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ from maya import cmds
|
|||
|
||||
import pyblish.api
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
import pype.hosts.maya.api.action
|
||||
|
||||
|
||||
def len_flattened(components):
|
||||
|
|
@ -50,7 +50,7 @@ class ValidateMeshHasUVs(pyblish.api.InstancePlugin):
|
|||
families = ['model']
|
||||
category = 'geometry'
|
||||
label = 'Mesh Has UVs'
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction]
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction]
|
||||
optional = True
|
||||
|
||||
@classmethod
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ from maya import cmds
|
|||
|
||||
import pyblish.api
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
import pype.hosts.maya.api.action
|
||||
|
||||
|
||||
class ValidateMeshLaminaFaces(pyblish.api.InstancePlugin):
|
||||
|
|
@ -18,7 +18,7 @@ class ValidateMeshLaminaFaces(pyblish.api.InstancePlugin):
|
|||
category = 'geometry'
|
||||
version = (0, 1, 0)
|
||||
label = 'Mesh Lamina Faces'
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction]
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
@staticmethod
|
||||
def get_invalid(instance):
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ from maya import cmds
|
|||
|
||||
import pyblish.api
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
import pype.hosts.maya.api.action
|
||||
|
||||
|
||||
class ValidateMeshNoNegativeScale(pyblish.api.Validator):
|
||||
|
|
@ -21,7 +21,7 @@ class ValidateMeshNoNegativeScale(pyblish.api.Validator):
|
|||
hosts = ['maya']
|
||||
families = ['model']
|
||||
label = 'Mesh No Negative Scale'
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction]
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
@staticmethod
|
||||
def get_invalid(instance):
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ from maya import cmds
|
|||
|
||||
import pyblish.api
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
import pype.hosts.maya.api.action
|
||||
|
||||
|
||||
class ValidateMeshNonManifold(pyblish.api.Validator):
|
||||
|
|
@ -17,7 +17,7 @@ class ValidateMeshNonManifold(pyblish.api.Validator):
|
|||
hosts = ['maya']
|
||||
families = ['model']
|
||||
label = 'Mesh Non-Manifold Vertices/Edges'
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction]
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
@staticmethod
|
||||
def get_invalid(instance):
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@ from maya import cmds
|
|||
|
||||
import pyblish.api
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
from pype.hosts.maya import lib
|
||||
import pype.hosts.maya.api.action
|
||||
from pype.hosts.maya.api import lib
|
||||
|
||||
|
||||
class ValidateMeshNonZeroEdgeLength(pyblish.api.InstancePlugin):
|
||||
|
|
@ -22,7 +22,7 @@ class ValidateMeshNonZeroEdgeLength(pyblish.api.InstancePlugin):
|
|||
category = 'geometry'
|
||||
version = (0, 1, 0)
|
||||
label = 'Mesh Edge Length Non Zero'
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction]
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction]
|
||||
optional = True
|
||||
|
||||
__tolerance = 1e-5
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ from maya import cmds
|
|||
|
||||
import pyblish.api
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
import pype.hosts.maya.api.action
|
||||
|
||||
|
||||
class ValidateMeshNormalsUnlocked(pyblish.api.Validator):
|
||||
|
|
@ -19,7 +19,7 @@ class ValidateMeshNormalsUnlocked(pyblish.api.Validator):
|
|||
category = 'geometry'
|
||||
version = (0, 1, 0)
|
||||
label = 'Mesh Normals Unlocked'
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction,
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction,
|
||||
pype.api.RepairAction]
|
||||
optional = True
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import pyblish.api
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
import pype.hosts.maya.api.action
|
||||
import math
|
||||
import maya.api.OpenMaya as om
|
||||
import pymel.core as pm
|
||||
|
|
@ -235,7 +235,7 @@ class ValidateMeshHasOverlappingUVs(pyblish.api.InstancePlugin):
|
|||
families = ['model']
|
||||
category = 'geometry'
|
||||
label = 'Mesh Has Overlapping UVs'
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction]
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction]
|
||||
optional = True
|
||||
|
||||
@classmethod
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ from maya import cmds
|
|||
|
||||
import pyblish.api
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
import pype.hosts.maya.api.action
|
||||
|
||||
|
||||
def pairs(iterable):
|
||||
|
|
@ -77,7 +77,7 @@ class ValidateMeshShaderConnections(pyblish.api.InstancePlugin):
|
|||
hosts = ['maya']
|
||||
families = ['model']
|
||||
label = "Mesh Shader Connections"
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction,
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction,
|
||||
pype.api.RepairAction]
|
||||
|
||||
def process(self, instance):
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@ from maya import cmds
|
|||
|
||||
import pyblish.api
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
from pype.hosts.maya import lib
|
||||
import pype.hosts.maya.api.action
|
||||
from pype.hosts.maya.api import lib
|
||||
|
||||
|
||||
class ValidateMeshSingleUVSet(pyblish.api.InstancePlugin):
|
||||
|
|
@ -22,7 +22,7 @@ class ValidateMeshSingleUVSet(pyblish.api.InstancePlugin):
|
|||
optional = True
|
||||
version = (0, 1, 0)
|
||||
label = "Mesh Single UV Set"
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction,
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction,
|
||||
pype.api.RepairAction]
|
||||
|
||||
@staticmethod
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ from maya import cmds
|
|||
|
||||
import pyblish.api
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
import pype.hosts.maya.api.action
|
||||
|
||||
|
||||
class ValidateMeshUVSetMap1(pyblish.api.InstancePlugin):
|
||||
|
|
@ -20,7 +20,7 @@ class ValidateMeshUVSetMap1(pyblish.api.InstancePlugin):
|
|||
families = ['model']
|
||||
optional = True
|
||||
label = "Mesh has map1 UV Set"
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction,
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction,
|
||||
pype.api.RepairAction]
|
||||
|
||||
@staticmethod
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ from maya import cmds
|
|||
|
||||
import pyblish.api
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
import pype.hosts.maya.api.action
|
||||
|
||||
|
||||
def len_flattened(components):
|
||||
|
|
@ -62,7 +62,7 @@ class ValidateMeshVerticesHaveEdges(pyblish.api.InstancePlugin):
|
|||
families = ['model']
|
||||
category = 'geometry'
|
||||
label = 'Mesh Vertices Have Edges'
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction,
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction,
|
||||
pype.api.RepairAction]
|
||||
|
||||
@classmethod
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@ from maya import cmds
|
|||
|
||||
import pyblish.api
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
from pype.hosts.maya import lib
|
||||
import pype.hosts.maya.api.action
|
||||
from pype.hosts.maya.api import lib
|
||||
|
||||
|
||||
class ValidateModelContent(pyblish.api.InstancePlugin):
|
||||
|
|
@ -18,7 +18,7 @@ class ValidateModelContent(pyblish.api.InstancePlugin):
|
|||
hosts = ["maya"]
|
||||
families = ["model"]
|
||||
label = "Model Content"
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction]
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
@classmethod
|
||||
def get_invalid(cls, instance):
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
from maya import cmds
|
||||
import pyblish.api
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
import pype.hosts.maya.api.action
|
||||
import re
|
||||
|
||||
|
||||
|
|
@ -18,7 +18,7 @@ class ValidateModelName(pyblish.api.InstancePlugin):
|
|||
hosts = ["maya"]
|
||||
families = ["model"]
|
||||
label = "Model Name"
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction]
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction]
|
||||
# path to shader names definitions
|
||||
# TODO: move it to preset file
|
||||
material_file = None
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import appdirs
|
|||
import pyblish.api
|
||||
from avalon.vendor import requests
|
||||
from pype.plugin import contextplugin_should_run
|
||||
import pype.hosts.maya.action
|
||||
import pype.hosts.maya.api.action
|
||||
|
||||
|
||||
class ValidateMusterConnection(pyblish.api.ContextPlugin):
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ from maya import cmds
|
|||
|
||||
import pyblish.api
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
import pype.hosts.maya.api.action
|
||||
|
||||
|
||||
class ValidateNoAnimation(pyblish.api.Validator):
|
||||
|
|
@ -19,7 +19,7 @@ class ValidateNoAnimation(pyblish.api.Validator):
|
|||
hosts = ["maya"]
|
||||
families = ["model"]
|
||||
optional = True
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction]
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
def process(self, instance):
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ from maya import cmds
|
|||
|
||||
import pyblish.api
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
import pype.hosts.maya.api.action
|
||||
|
||||
|
||||
class ValidateNoDefaultCameras(pyblish.api.InstancePlugin):
|
||||
|
|
@ -18,7 +18,7 @@ class ValidateNoDefaultCameras(pyblish.api.InstancePlugin):
|
|||
families = ['camera']
|
||||
version = (0, 1, 0)
|
||||
label = "No Default Cameras"
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction]
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
@staticmethod
|
||||
def get_invalid(instance):
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import maya.cmds as cmds
|
|||
|
||||
import pyblish.api
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
import pype.hosts.maya.api.action
|
||||
|
||||
|
||||
def get_namespace(node_name):
|
||||
|
|
@ -22,7 +22,7 @@ class ValidateNoNamespace(pyblish.api.InstancePlugin):
|
|||
category = 'cleanup'
|
||||
version = (0, 1, 0)
|
||||
label = 'No Namespaces'
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction,
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction,
|
||||
pype.api.RepairAction]
|
||||
|
||||
@staticmethod
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import maya.cmds as cmds
|
|||
|
||||
import pyblish.api
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
import pype.hosts.maya.api.action
|
||||
|
||||
|
||||
def has_shape_children(node):
|
||||
|
|
@ -44,7 +44,7 @@ class ValidateNoNullTransforms(pyblish.api.InstancePlugin):
|
|||
version = (0, 1, 0)
|
||||
label = 'No Empty/Null Transforms'
|
||||
actions = [pype.api.RepairAction,
|
||||
pype.hosts.maya.action.SelectInvalidAction]
|
||||
pype.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
@staticmethod
|
||||
def get_invalid(instance):
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ from maya import cmds
|
|||
|
||||
import pyblish.api
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
import pype.hosts.maya.api.action
|
||||
|
||||
|
||||
class ValidateNoUnknownNodes(pyblish.api.InstancePlugin):
|
||||
|
|
@ -21,7 +21,7 @@ class ValidateNoUnknownNodes(pyblish.api.InstancePlugin):
|
|||
families = ['model', 'rig']
|
||||
optional = True
|
||||
label = "Unknown Nodes"
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction]
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
@staticmethod
|
||||
def get_invalid(instance):
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
import pyblish.api
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
import pype.hosts.maya.api.action
|
||||
|
||||
from pype.hosts.maya import lib
|
||||
from pype.hosts.maya.api import lib
|
||||
|
||||
|
||||
class ValidateNodeIDs(pyblish.api.InstancePlugin):
|
||||
|
|
@ -25,8 +25,8 @@ class ValidateNodeIDs(pyblish.api.InstancePlugin):
|
|||
"yetiRig",
|
||||
"assembly"]
|
||||
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction,
|
||||
pype.hosts.maya.action.GenerateUUIDsOnInvalidAction]
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction,
|
||||
pype.hosts.maya.api.action.GenerateUUIDsOnInvalidAction]
|
||||
|
||||
def process(self, instance):
|
||||
"""Process all meshes"""
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@ from maya import cmds
|
|||
|
||||
import pyblish.api
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
from pype.hosts.maya import lib
|
||||
import pype.hosts.maya.api.action
|
||||
from pype.hosts.maya.api import lib
|
||||
|
||||
|
||||
class ValidateNodeIdsDeformedShape(pyblish.api.InstancePlugin):
|
||||
|
|
@ -20,7 +20,7 @@ class ValidateNodeIdsDeformedShape(pyblish.api.InstancePlugin):
|
|||
families = ['look']
|
||||
hosts = ['maya']
|
||||
label = 'Deformed shape ids'
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction, pype.api.RepairAction]
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction, pype.api.RepairAction]
|
||||
|
||||
def process(self, instance):
|
||||
"""Process all the nodes in the instance"""
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@ import pyblish.api
|
|||
from avalon import io
|
||||
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
from pype.hosts.maya import lib
|
||||
import pype.hosts.maya.api.action
|
||||
from pype.hosts.maya.api import lib
|
||||
|
||||
|
||||
class ValidateNodeIdsInDatabase(pyblish.api.InstancePlugin):
|
||||
|
|
@ -23,8 +23,8 @@ class ValidateNodeIdsInDatabase(pyblish.api.InstancePlugin):
|
|||
hosts = ['maya']
|
||||
families = ["*"]
|
||||
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction,
|
||||
pype.hosts.maya.action.GenerateUUIDsOnInvalidAction]
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction,
|
||||
pype.hosts.maya.api.action.GenerateUUIDsOnInvalidAction]
|
||||
|
||||
def process(self, instance):
|
||||
invalid = self.get_invalid(instance)
|
||||
|
|
|
|||
|
|
@ -2,9 +2,9 @@ import pyblish.api
|
|||
import pype.api
|
||||
|
||||
from avalon import io
|
||||
import pype.hosts.maya.action
|
||||
import pype.hosts.maya.api.action
|
||||
|
||||
from pype.hosts.maya import lib
|
||||
from pype.hosts.maya.api import lib
|
||||
|
||||
|
||||
class ValidateNodeIDsRelated(pyblish.api.InstancePlugin):
|
||||
|
|
@ -20,8 +20,8 @@ class ValidateNodeIDsRelated(pyblish.api.InstancePlugin):
|
|||
"rig"]
|
||||
optional = True
|
||||
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction,
|
||||
pype.hosts.maya.action.GenerateUUIDsOnInvalidAction]
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction,
|
||||
pype.hosts.maya.api.action.GenerateUUIDsOnInvalidAction]
|
||||
|
||||
def process(self, instance):
|
||||
"""Process all nodes in instance (including hierarchy)"""
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@ from collections import defaultdict
|
|||
|
||||
import pyblish.api
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
from pype.hosts.maya import lib
|
||||
import pype.hosts.maya.api.action
|
||||
from pype.hosts.maya.api import lib
|
||||
|
||||
|
||||
class ValidateNodeIdsUnique(pyblish.api.InstancePlugin):
|
||||
|
|
@ -20,8 +20,8 @@ class ValidateNodeIdsUnique(pyblish.api.InstancePlugin):
|
|||
"rig",
|
||||
"yetiRig"]
|
||||
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction,
|
||||
pype.hosts.maya.action.GenerateUUIDsOnInvalidAction]
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction,
|
||||
pype.hosts.maya.api.action.GenerateUUIDsOnInvalidAction]
|
||||
|
||||
def process(self, instance):
|
||||
"""Process all meshes"""
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ from maya import cmds
|
|||
|
||||
import pyblish.api
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
import pype.hosts.maya.api.action
|
||||
|
||||
|
||||
class ValidateNodeNoGhosting(pyblish.api.InstancePlugin):
|
||||
|
|
@ -21,7 +21,7 @@ class ValidateNodeNoGhosting(pyblish.api.InstancePlugin):
|
|||
hosts = ['maya']
|
||||
families = ['model', 'rig']
|
||||
label = "No Ghosting"
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction]
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
_attributes = {'ghosting': 0}
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ from maya import cmds
|
|||
|
||||
import pyblish.api
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
import pype.hosts.maya.api.action
|
||||
|
||||
|
||||
class ValidateRenderNoDefaultCameras(pyblish.api.InstancePlugin):
|
||||
|
|
@ -12,7 +12,7 @@ class ValidateRenderNoDefaultCameras(pyblish.api.InstancePlugin):
|
|||
hosts = ['maya']
|
||||
families = ['renderlayer']
|
||||
label = "No Default Cameras Renderable"
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction]
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
@staticmethod
|
||||
def get_invalid(instance):
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import re
|
|||
|
||||
import pyblish.api
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
import pype.hosts.maya.api.action
|
||||
|
||||
from maya import cmds
|
||||
|
||||
|
|
@ -28,7 +28,7 @@ class ValidateRenderSingleCamera(pyblish.api.InstancePlugin):
|
|||
hosts = ['maya']
|
||||
families = ["renderlayer",
|
||||
"vrayscene"]
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction]
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
R_CAMERA_TOKEN = re.compile(r'%c|<camera>', re.IGNORECASE)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import pyblish.api
|
||||
|
||||
import pype.hosts.maya.action
|
||||
import pype.hosts.maya.api.action
|
||||
from avalon import io
|
||||
import pype.api
|
||||
|
||||
|
|
@ -25,7 +25,7 @@ class ValidateRenderLayerAOVs(pyblish.api.InstancePlugin):
|
|||
label = "Render Passes / AOVs Are Registered"
|
||||
hosts = ["maya"]
|
||||
families = ["renderlayer"]
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction]
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
def process(self, instance):
|
||||
invalid = self.get_invalid(instance)
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import pymel.core as pm
|
|||
|
||||
import pyblish.api
|
||||
import pype.api
|
||||
from pype.hosts.maya import lib
|
||||
from pype.hosts.maya.api import lib
|
||||
|
||||
|
||||
class ValidateRenderSettings(pyblish.api.InstancePlugin):
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@ from maya import cmds
|
|||
import pyblish.api
|
||||
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
from pype.hosts.maya.lib import undo_chunk
|
||||
import pype.hosts.maya.api.action
|
||||
from pype.hosts.maya.api.lib import undo_chunk
|
||||
|
||||
|
||||
class ValidateRigControllers(pyblish.api.InstancePlugin):
|
||||
|
|
@ -30,7 +30,7 @@ class ValidateRigControllers(pyblish.api.InstancePlugin):
|
|||
hosts = ["maya"]
|
||||
families = ["rig"]
|
||||
actions = [pype.api.RepairAction,
|
||||
pype.hosts.maya.action.SelectInvalidAction]
|
||||
pype.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
# Default controller values
|
||||
CONTROLLER_DEFAULTS = {
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@ from maya import cmds
|
|||
import pyblish.api
|
||||
import pype.api
|
||||
|
||||
from pype.hosts.maya import lib
|
||||
import pype.hosts.maya.action
|
||||
from pype.hosts.maya.api import lib
|
||||
import pype.hosts.maya.api.action
|
||||
|
||||
|
||||
class ValidateRigControllersArnoldAttributes(pyblish.api.InstancePlugin):
|
||||
|
|
@ -31,7 +31,7 @@ class ValidateRigControllersArnoldAttributes(pyblish.api.InstancePlugin):
|
|||
hosts = ["maya"]
|
||||
families = ["rig"]
|
||||
actions = [pype.api.RepairAction,
|
||||
pype.hosts.maya.action.SelectInvalidAction]
|
||||
pype.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
attributes = [
|
||||
"rcurve",
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@ import maya.cmds as cmds
|
|||
|
||||
import pyblish.api
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
from pype.hosts.maya import lib
|
||||
import pype.hosts.maya.api.action
|
||||
from pype.hosts.maya.api import lib
|
||||
|
||||
|
||||
class ValidateRigOutSetNodeIds(pyblish.api.InstancePlugin):
|
||||
|
|
@ -20,7 +20,7 @@ class ValidateRigOutSetNodeIds(pyblish.api.InstancePlugin):
|
|||
families = ["rig"]
|
||||
hosts = ['maya']
|
||||
label = 'Rig Out Set Node Ids'
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction, pype.api.RepairAction]
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction, pype.api.RepairAction]
|
||||
|
||||
def process(self, instance):
|
||||
"""Process all meshes"""
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@ import pymel.core as pc
|
|||
import pyblish.api
|
||||
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
from pype.hosts.maya.lib import undo_chunk
|
||||
import pype.hosts.maya.api.action
|
||||
from pype.hosts.maya.api.lib import undo_chunk
|
||||
|
||||
|
||||
class ValidateRigOutputIds(pyblish.api.InstancePlugin):
|
||||
|
|
@ -19,7 +19,7 @@ class ValidateRigOutputIds(pyblish.api.InstancePlugin):
|
|||
hosts = ["maya"]
|
||||
families = ["rig"]
|
||||
actions = [pype.api.RepairAction,
|
||||
pype.hosts.maya.action.SelectInvalidAction]
|
||||
pype.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
def process(self, instance):
|
||||
invalid = self.get_invalid(instance, compute=True)
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ from maya import cmds
|
|||
|
||||
import pyblish.api
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
import pype.hosts.maya.api.action
|
||||
import re
|
||||
|
||||
|
||||
|
|
@ -18,7 +18,7 @@ class ValidateShaderName(pyblish.api.InstancePlugin):
|
|||
families = ["look"]
|
||||
hosts = ['maya']
|
||||
label = 'Validate Shaders Name'
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction]
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction]
|
||||
regex = r'(?P<asset>.*)_(.*)_SHD'
|
||||
|
||||
# The default connections to check
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ from maya import cmds
|
|||
|
||||
import pyblish.api
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
import pype.hosts.maya.api.action
|
||||
|
||||
|
||||
def short_name(node):
|
||||
|
|
@ -38,7 +38,7 @@ class ValidateShapeDefaultNames(pyblish.api.InstancePlugin):
|
|||
optional = True
|
||||
version = (0, 1, 0)
|
||||
label = "Shape Default Naming"
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction,
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction,
|
||||
pype.api.RepairAction]
|
||||
|
||||
@staticmethod
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import pype.api
|
|||
|
||||
from maya import cmds
|
||||
|
||||
import pype.hosts.maya.action
|
||||
import pype.hosts.maya.api.action
|
||||
|
||||
|
||||
class ValidateShapeRenderStats(pyblish.api.Validator):
|
||||
|
|
@ -13,7 +13,7 @@ class ValidateShapeRenderStats(pyblish.api.Validator):
|
|||
hosts = ['maya']
|
||||
families = ['model']
|
||||
label = 'Shape Default Render Stats'
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction,
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction,
|
||||
pype.api.RepairAction]
|
||||
|
||||
defaults = {'castsShadows': 1,
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ from maya import cmds
|
|||
|
||||
import pyblish.api
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
import pype.hosts.maya.api.action
|
||||
|
||||
|
||||
class ValidateSkinclusterDeformerSet(pyblish.api.InstancePlugin):
|
||||
|
|
@ -18,7 +18,7 @@ class ValidateSkinclusterDeformerSet(pyblish.api.InstancePlugin):
|
|||
hosts = ['maya']
|
||||
families = ['fbx']
|
||||
label = "Skincluster Deformer Relationships"
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction]
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
def process(self, instance):
|
||||
"""Process all the transform nodes in the instance"""
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import pyblish.api
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
import pype.hosts.maya.api.action
|
||||
|
||||
|
||||
class ValidateStepSize(pyblish.api.InstancePlugin):
|
||||
|
|
@ -15,7 +15,7 @@ class ValidateStepSize(pyblish.api.InstancePlugin):
|
|||
families = ['camera',
|
||||
'pointcache',
|
||||
'animation']
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction]
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
MIN = 0.01
|
||||
MAX = 1.0
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ from maya import cmds
|
|||
|
||||
import pyblish.api
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
import pype.hosts.maya.api.action
|
||||
|
||||
|
||||
class ValidateTransformNamingSuffix(pyblish.api.InstancePlugin):
|
||||
|
|
@ -34,7 +34,7 @@ class ValidateTransformNamingSuffix(pyblish.api.InstancePlugin):
|
|||
optional = True
|
||||
version = (0, 1, 0)
|
||||
label = 'Suffix Naming Conventions'
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction]
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction]
|
||||
SUFFIX_NAMING_TABLE = {'mesh': ["_GEO", "_GES", "_GEP", "_OSD"],
|
||||
'nurbsCurve': ["_CRV"],
|
||||
'nurbsSurface': ["_NRB"],
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ from maya import cmds
|
|||
|
||||
import pyblish.api
|
||||
import pype.api
|
||||
import pype.hosts.maya.action
|
||||
import pype.hosts.maya.api.action
|
||||
|
||||
|
||||
class ValidateTransformZero(pyblish.api.Validator):
|
||||
|
|
@ -20,7 +20,7 @@ class ValidateTransformZero(pyblish.api.Validator):
|
|||
category = "geometry"
|
||||
version = (0, 1, 0)
|
||||
label = "Transform Zero (Freeze)"
|
||||
actions = [pype.hosts.maya.action.SelectInvalidAction]
|
||||
actions = [pype.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
_identity = [1.0, 0.0, 0.0, 0.0,
|
||||
0.0, 1.0, 0.0, 0.0,
|
||||
|
|
|
|||
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