mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
fix openpype imports
This commit is contained in:
parent
ee6e42ec6c
commit
0508cd986a
133 changed files with 170 additions and 170 deletions
|
|
@ -83,7 +83,7 @@ class HostBase(object):
|
|||
This is where should be added menu with tools, registered callbacks
|
||||
and other host integration initialization.
|
||||
|
||||
It is called automatically when 'openpype.pipeline.install_host' is
|
||||
It is called automatically when 'ayon_core.pipeline.install_host' is
|
||||
triggered.
|
||||
"""
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ download [Anastasiy’s Extension Manager](https://install.anastasiy.com/)
|
|||
The easiest way to get the server and After Effects launch is with:
|
||||
|
||||
```
|
||||
python -c ^"import ayon_core.hosts.photoshop;openpype.hosts..aftereffects.launch(""c:\Program Files\Adobe\Adobe After Effects 2020\Support Files\AfterFX.exe"")^"
|
||||
python -c ^"import ayon_core.hosts.photoshop;ayon_core.hosts.aftereffects.launch(""c:\Program Files\Adobe\Adobe After Effects 2020\Support Files\AfterFX.exe"")^"
|
||||
```
|
||||
|
||||
`avalon.aftereffects.launch` launches the application and server, and also closes the server when After Effects exists.
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ log = Logger.get_logger(__name__)
|
|||
|
||||
|
||||
HOST_DIR = os.path.dirname(
|
||||
os.path.abspath(openpype.hosts.aftereffects.__file__)
|
||||
os.path.abspath(ayon_core.hosts.aftereffects.__file__)
|
||||
)
|
||||
PLUGINS_DIR = os.path.join(HOST_DIR, "plugins")
|
||||
PUBLISH_PATH = os.path.join(PLUGINS_DIR, "publish")
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ from .workio import (
|
|||
)
|
||||
|
||||
|
||||
HOST_DIR = os.path.dirname(os.path.abspath(openpype.hosts.blender.__file__))
|
||||
HOST_DIR = os.path.dirname(os.path.abspath(ayon_core.hosts.blender.__file__))
|
||||
PLUGINS_DIR = os.path.join(HOST_DIR, "plugins")
|
||||
PUBLISH_PATH = os.path.join(PLUGINS_DIR, "publish")
|
||||
LOAD_PATH = os.path.join(PLUGINS_DIR, "load")
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ class ValidateCameraZeroKeyframe(pyblish.api.InstancePlugin,
|
|||
hosts = ["blender"]
|
||||
families = ["camera"]
|
||||
label = "Zero Keyframe"
|
||||
actions = [openpype.hosts.blender.api.action.SelectInvalidAction]
|
||||
actions = [ayon_core.hosts.blender.api.action.SelectInvalidAction]
|
||||
|
||||
@staticmethod
|
||||
def get_invalid(instance) -> List:
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ class ValidateMeshHasUvs(
|
|||
hosts = ["blender"]
|
||||
families = ["model"]
|
||||
label = "Mesh Has UVs"
|
||||
actions = [openpype.hosts.blender.api.action.SelectInvalidAction]
|
||||
actions = [ayon_core.hosts.blender.api.action.SelectInvalidAction]
|
||||
optional = True
|
||||
|
||||
@staticmethod
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ class ValidateMeshNoNegativeScale(pyblish.api.Validator,
|
|||
hosts = ["blender"]
|
||||
families = ["model"]
|
||||
label = "Mesh No Negative Scale"
|
||||
actions = [openpype.hosts.blender.api.action.SelectInvalidAction]
|
||||
actions = [ayon_core.hosts.blender.api.action.SelectInvalidAction]
|
||||
|
||||
@staticmethod
|
||||
def get_invalid(instance) -> List:
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ class ValidateNoColonsInName(pyblish.api.InstancePlugin,
|
|||
hosts = ["blender"]
|
||||
families = ["model", "rig"]
|
||||
label = "No Colons in names"
|
||||
actions = [openpype.hosts.blender.api.action.SelectInvalidAction]
|
||||
actions = [ayon_core.hosts.blender.api.action.SelectInvalidAction]
|
||||
|
||||
@staticmethod
|
||||
def get_invalid(instance) -> List:
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ class ValidateObjectIsInObjectMode(
|
|||
hosts = ["blender"]
|
||||
families = ["model", "rig", "layout"]
|
||||
label = "Validate Object Mode"
|
||||
actions = [openpype.hosts.blender.api.action.SelectInvalidAction]
|
||||
actions = [ayon_core.hosts.blender.api.action.SelectInvalidAction]
|
||||
optional = False
|
||||
|
||||
@staticmethod
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ class ValidateTransformZero(pyblish.api.InstancePlugin,
|
|||
hosts = ["blender"]
|
||||
families = ["model"]
|
||||
label = "Transform Zero"
|
||||
actions = [openpype.hosts.blender.api.action.SelectInvalidAction]
|
||||
actions = [ayon_core.hosts.blender.api.action.SelectInvalidAction]
|
||||
|
||||
_identity = mathutils.Matrix()
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ from ayon_core.pipeline import install_openpype_plugins
|
|||
log = Logger.get_logger("celaction")
|
||||
|
||||
PUBLISH_HOST = "celaction"
|
||||
HOST_DIR = os.path.dirname(os.path.abspath(openpype.hosts.celaction.__file__))
|
||||
HOST_DIR = os.path.dirname(os.path.abspath(ayon_core.hosts.celaction.__file__))
|
||||
PLUGINS_DIR = os.path.join(HOST_DIR, "plugins")
|
||||
PUBLISH_PATH = os.path.join(PLUGINS_DIR, "publish")
|
||||
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ class FusionHost(HostBase, IWorkfileHost, ILoadHost, IPublishHost):
|
|||
and loaders into fusion.
|
||||
|
||||
It is called automatically when installing via
|
||||
`openpype.pipeline.install_host(openpype.hosts.fusion.api)`
|
||||
`ayon_core.pipeline.install_host(ayon_core.hosts.fusion.api)`
|
||||
|
||||
See the Maya equivalent for inspiration on how to implement this.
|
||||
|
||||
|
|
@ -121,7 +121,7 @@ class FusionHost(HostBase, IWorkfileHost, ILoadHost, IPublishHost):
|
|||
|
||||
def open_workfile(self, filepath):
|
||||
# Hack to get fusion, see
|
||||
# openpype.hosts.fusion.api.pipeline.get_current_comp()
|
||||
# ayon_core.hosts.fusion.api.pipeline.get_current_comp()
|
||||
fusion = getattr(sys.modules["__main__"], "fusion", None)
|
||||
|
||||
return fusion.LoadComp(filepath)
|
||||
|
|
|
|||
|
|
@ -276,7 +276,7 @@ function Client() {
|
|||
|
||||
app.avalonClient.send(
|
||||
{
|
||||
'module': 'openpype.lib',
|
||||
'module': 'ayon_core.lib',
|
||||
'method': 'emit_event',
|
||||
'args': ['application.launched']
|
||||
}, false);
|
||||
|
|
@ -387,7 +387,7 @@ function start() {
|
|||
*/
|
||||
self.onCreator = function() {
|
||||
app.avalonClient.send({
|
||||
'module': 'openpype.hosts.harmony.api.lib',
|
||||
'module': 'ayon_core.hosts.harmony.api.lib',
|
||||
'method': 'show',
|
||||
'args': ['creator']
|
||||
}, false);
|
||||
|
|
@ -402,7 +402,7 @@ function start() {
|
|||
*/
|
||||
self.onWorkfiles = function() {
|
||||
app.avalonClient.send({
|
||||
'module': 'openpype.hosts.harmony.api.lib',
|
||||
'module': 'ayon_core.hosts.harmony.api.lib',
|
||||
'method': 'show',
|
||||
'args': ['workfiles']
|
||||
}, false);
|
||||
|
|
@ -417,7 +417,7 @@ function start() {
|
|||
*/
|
||||
self.onLoad = function() {
|
||||
app.avalonClient.send({
|
||||
'module': 'openpype.hosts.harmony.api.lib',
|
||||
'module': 'ayon_core.hosts.harmony.api.lib',
|
||||
'method': 'show',
|
||||
'args': ['loader']
|
||||
}, false);
|
||||
|
|
@ -433,7 +433,7 @@ function start() {
|
|||
*/
|
||||
self.onPublish = function() {
|
||||
app.avalonClient.send({
|
||||
'module': 'openpype.hosts.harmony.api.lib',
|
||||
'module': 'ayon_core.hosts.harmony.api.lib',
|
||||
'method': 'show',
|
||||
'args': ['publish']
|
||||
}, false);
|
||||
|
|
@ -449,7 +449,7 @@ function start() {
|
|||
*/
|
||||
self.onManage = function() {
|
||||
app.avalonClient.send({
|
||||
'module': 'openpype.hosts.harmony.api.lib',
|
||||
'module': 'ayon_core.hosts.harmony.api.lib',
|
||||
'method': 'show',
|
||||
'args': ['sceneinventory']
|
||||
}, false);
|
||||
|
|
@ -465,7 +465,7 @@ function start() {
|
|||
*/
|
||||
self.onSubsetManage = function() {
|
||||
app.avalonClient.send({
|
||||
'module': 'openpype.hosts.harmony.api.lib',
|
||||
'module': 'ayon_core.hosts.harmony.api.lib',
|
||||
'method': 'show',
|
||||
'args': ['subsetmanager']
|
||||
}, false);
|
||||
|
|
@ -482,7 +482,7 @@ function start() {
|
|||
self.onSetSceneSettings = function() {
|
||||
app.avalonClient.send(
|
||||
{
|
||||
"module": "openpype.hosts.harmony.api",
|
||||
"module": "ayon_core.hosts.harmony.api",
|
||||
"method": "ensure_scene_settings",
|
||||
"args": []
|
||||
},
|
||||
|
|
@ -500,7 +500,7 @@ function start() {
|
|||
*/
|
||||
self.onExperimentalTools = function() {
|
||||
app.avalonClient.send({
|
||||
'module': 'openpype.hosts.harmony.api.lib',
|
||||
'module': 'ayon_core.hosts.harmony.api.lib',
|
||||
'method': 'show',
|
||||
'args': ['experimental_tools']
|
||||
}, false);
|
||||
|
|
@ -550,7 +550,7 @@ function ensureSceneSettings() {
|
|||
var app = QCoreApplication.instance();
|
||||
app.avalonClient.send(
|
||||
{
|
||||
"module": "openpype.hosts.harmony.api",
|
||||
"module": "ayon_core.hosts.harmony.api",
|
||||
"method": "ensure_scene_settings",
|
||||
"args": []
|
||||
},
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ from ayon_core.hosts.harmony import HARMONY_HOST_DIR
|
|||
import ayon_core.hosts.harmony.api as harmony
|
||||
|
||||
|
||||
log = logging.getLogger("openpype.hosts.harmony")
|
||||
log = logging.getLogger("ayon_core.hosts.harmony")
|
||||
|
||||
PLUGINS_DIR = os.path.join(HARMONY_HOST_DIR, "plugins")
|
||||
PUBLISH_PATH = os.path.join(PLUGINS_DIR, "publish")
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ class ExtractRender(pyblish.api.InstancePlugin):
|
|||
|
||||
# Generate thumbnail.
|
||||
thumbnail_path = os.path.join(path, "thumbnail.png")
|
||||
args = openpype.lib.get_ffmpeg_tool_args(
|
||||
args = ayon_core.lib.get_ffmpeg_tool_args(
|
||||
"ffmpeg",
|
||||
"-y",
|
||||
"-i", os.path.join(path, list(collections[0])[0]),
|
||||
|
|
|
|||
|
|
@ -448,19 +448,19 @@ def get_track_openpype_data(track, container_name=None):
|
|||
)
|
||||
|
||||
|
||||
@deprecated("openpype.hosts.hiero.api.lib.get_trackitem_openpype_tag")
|
||||
@deprecated("ayon_core.hosts.hiero.api.lib.get_trackitem_openpype_tag")
|
||||
def get_track_item_pype_tag(track_item):
|
||||
# backward compatibility alias
|
||||
return get_trackitem_openpype_tag(track_item)
|
||||
|
||||
|
||||
@deprecated("openpype.hosts.hiero.api.lib.set_trackitem_openpype_tag")
|
||||
@deprecated("ayon_core.hosts.hiero.api.lib.set_trackitem_openpype_tag")
|
||||
def set_track_item_pype_tag(track_item, data=None):
|
||||
# backward compatibility alias
|
||||
return set_trackitem_openpype_tag(track_item, data)
|
||||
|
||||
|
||||
@deprecated("openpype.hosts.hiero.api.lib.get_trackitem_openpype_data")
|
||||
@deprecated("ayon_core.hosts.hiero.api.lib.get_trackitem_openpype_data")
|
||||
def get_track_item_pype_data(track_item):
|
||||
# backward compatibility alias
|
||||
return get_trackitem_openpype_data(track_item)
|
||||
|
|
|
|||
|
|
@ -305,9 +305,9 @@ def reload_config():
|
|||
import importlib
|
||||
|
||||
for module in (
|
||||
"openpype.hosts.hiero.lib",
|
||||
"openpype.hosts.hiero.menu",
|
||||
"openpype.hosts.hiero.tags"
|
||||
"ayon_core.hosts.hiero.lib",
|
||||
"ayon_core.hosts.hiero.menu",
|
||||
"ayon_core.hosts.hiero.tags"
|
||||
):
|
||||
log.info("Reloading module: {}...".format(module))
|
||||
try:
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import ayon_core.hosts.hiero.api as phiero
|
|||
install_host(phiero)
|
||||
|
||||
try:
|
||||
__import__("openpype.hosts.hiero.api")
|
||||
__import__("ayon_core.hosts.hiero.api")
|
||||
__import__("pyblish")
|
||||
|
||||
except ImportError as e:
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ from ayon_core.lib import (
|
|||
)
|
||||
|
||||
|
||||
log = logging.getLogger("openpype.hosts.houdini")
|
||||
log = logging.getLogger("ayon_core.hosts.houdini")
|
||||
|
||||
AVALON_CONTAINERS = "/obj/AVALON_CONTAINERS"
|
||||
CONTEXT_CONTAINER = "/obj/OpenPypeContext"
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import hou
|
|||
|
||||
from .lib import get_current_context_template_data_with_asset_data
|
||||
|
||||
log = logging.getLogger("openpype.hosts.houdini.shelves")
|
||||
log = logging.getLogger("ayon_core.hosts.houdini.shelves")
|
||||
|
||||
|
||||
def generate_shelves():
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ host_tools.show_workfiles(parent)
|
|||
<label>Set Frame Range</label>
|
||||
<scriptCode><![CDATA[
|
||||
import ayon_core.hosts.houdini.api.lib
|
||||
openpype.hosts.houdini.api.lib.reset_framerange()
|
||||
ayon_core.hosts.houdini.api.lib.reset_framerange()
|
||||
]]></scriptCode>
|
||||
</scriptItem>
|
||||
|
||||
|
|
@ -90,7 +90,7 @@ openpype.hosts.houdini.api.lib.reset_framerange()
|
|||
<label>Update Houdini Vars</label>
|
||||
<scriptCode><![CDATA[
|
||||
import ayon_core.hosts.houdini.api.lib
|
||||
openpype.hosts.houdini.api.lib.update_houdini_vars_context_dialog()
|
||||
ayon_core.hosts.houdini.api.lib.update_houdini_vars_context_dialog()
|
||||
]]></scriptCode>
|
||||
</scriptItem>
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ from pymxs import runtime as rt
|
|||
|
||||
|
||||
JSON_PREFIX = "JSON::"
|
||||
log = logging.getLogger("openpype.hosts.max")
|
||||
log = logging.getLogger("ayon_core.hosts.max")
|
||||
|
||||
|
||||
def get_main_window():
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ from ayon_core.hosts.max import MAX_HOST_DIR
|
|||
|
||||
from pymxs import runtime as rt # noqa
|
||||
|
||||
log = logging.getLogger("openpype.hosts.max")
|
||||
log = logging.getLogger("ayon_core.hosts.max")
|
||||
|
||||
PLUGINS_DIR = os.path.join(MAX_HOST_DIR, "plugins")
|
||||
PUBLISH_PATH = os.path.join(PLUGINS_DIR, "publish")
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import contextlib
|
|||
from pymxs import runtime as rt
|
||||
from .lib import get_max_version, render_resolution
|
||||
|
||||
log = logging.getLogger("openpype.hosts.max")
|
||||
log = logging.getLogger("ayon_core.hosts.max")
|
||||
|
||||
|
||||
@contextlib.contextmanager
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ from .workio import (
|
|||
current_file
|
||||
)
|
||||
|
||||
log = logging.getLogger("openpype.hosts.maya")
|
||||
log = logging.getLogger("ayon_core.hosts.maya")
|
||||
|
||||
PLUGINS_DIR = os.path.join(MAYA_ROOT_DIR, "plugins")
|
||||
PUBLISH_PATH = os.path.join(PLUGINS_DIR, "publish")
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ def _process_reference(file_url, name, namespace, options):
|
|||
return nodes
|
||||
|
||||
|
||||
class AbcLoader(openpype.hosts.maya.api.plugin.ReferenceLoader):
|
||||
class AbcLoader(ayon_core.hosts.maya.api.plugin.ReferenceLoader):
|
||||
"""Loader to reference an Alembic file"""
|
||||
|
||||
families = ["animation",
|
||||
|
|
@ -72,7 +72,7 @@ class AbcLoader(openpype.hosts.maya.api.plugin.ReferenceLoader):
|
|||
return nodes
|
||||
|
||||
|
||||
class FbxLoader(openpype.hosts.maya.api.plugin.ReferenceLoader):
|
||||
class FbxLoader(ayon_core.hosts.maya.api.plugin.ReferenceLoader):
|
||||
"""Loader to reference an Fbx files"""
|
||||
|
||||
families = ["animation",
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ class SetFrameRangeWithHandlesLoader(load.LoaderPlugin):
|
|||
animationEndTime=end)
|
||||
|
||||
|
||||
class ImportMayaLoader(openpype.hosts.maya.api.plugin.Loader):
|
||||
class ImportMayaLoader(ayon_core.hosts.maya.api.plugin.Loader):
|
||||
"""Import action for Maya (unmanaged)
|
||||
|
||||
Warning:
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ from ayon_core.widgets.message_window import ScrollMessageBox
|
|||
from ayon_core.hosts.maya.api.lib import get_reference_node
|
||||
|
||||
|
||||
class LookLoader(openpype.hosts.maya.api.plugin.ReferenceLoader):
|
||||
class LookLoader(ayon_core.hosts.maya.api.plugin.ReferenceLoader):
|
||||
"""Specific loader for lookdev"""
|
||||
|
||||
families = ["look"]
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ def preserve_modelpanel_cameras(container, log=None):
|
|||
cmds.modelPanel(panel, edit=True, camera=new_camera)
|
||||
|
||||
|
||||
class ReferenceLoader(openpype.hosts.maya.api.plugin.ReferenceLoader):
|
||||
class ReferenceLoader(ayon_core.hosts.maya.api.plugin.ReferenceLoader):
|
||||
"""Reference file"""
|
||||
|
||||
families = ["model",
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ from ayon_core.hosts.maya.api import current_file
|
|||
from ayon_core.pipeline import get_representation_path
|
||||
|
||||
|
||||
class XgenLoader(openpype.hosts.maya.api.plugin.ReferenceLoader):
|
||||
class XgenLoader(ayon_core.hosts.maya.api.plugin.ReferenceLoader):
|
||||
"""Load Xgen as reference"""
|
||||
|
||||
families = ["xgen"]
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import ayon_core.hosts.maya.api.plugin
|
|||
from ayon_core.hosts.maya.api import lib
|
||||
|
||||
|
||||
class YetiRigLoader(openpype.hosts.maya.api.plugin.ReferenceLoader):
|
||||
class YetiRigLoader(ayon_core.hosts.maya.api.plugin.ReferenceLoader):
|
||||
"""This loader will load Yeti rig."""
|
||||
|
||||
families = ["yetiRig"]
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ class TextureResult(object):
|
|||
# Colorspace of the resulting texture. This might not be the input
|
||||
# colorspace of the texture if a TextureProcessor has processed the file.
|
||||
colorspace = attr.ib()
|
||||
# Hash generated for the texture using openpype.lib.source_hash
|
||||
# Hash generated for the texture using ayon_core.lib.source_hash
|
||||
file_hash = attr.ib()
|
||||
# The transfer mode, e.g. COPY or HARDLINK
|
||||
transfer_mode = attr.ib()
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ class ValidateAnimatedReferenceRig(pyblish.api.InstancePlugin):
|
|||
families = ["animation.fbx"]
|
||||
label = "Animated Reference Rig"
|
||||
accepted_controllers = ["transform", "locator"]
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction]
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
def process(self, instance):
|
||||
animated_sets = instance.data.get("animated_skeleton", [])
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ class ValidateAnimationContent(pyblish.api.InstancePlugin):
|
|||
hosts = ["maya"]
|
||||
families = ["animation"]
|
||||
label = "Animation Content"
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction]
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
@classmethod
|
||||
def get_invalid(cls, instance):
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ class ValidateOutRelatedNodeIds(pyblish.api.InstancePlugin):
|
|||
hosts = ['maya']
|
||||
label = 'Animation Out Set Related Node Ids'
|
||||
actions = [
|
||||
openpype.hosts.maya.api.action.SelectInvalidAction,
|
||||
ayon_core.hosts.maya.api.action.SelectInvalidAction,
|
||||
RepairAction
|
||||
]
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ class ValidateAssemblyName(pyblish.api.InstancePlugin):
|
|||
label = "Validate Assembly Name"
|
||||
order = pyblish.api.ValidatorOrder
|
||||
families = ["assembly"]
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction]
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction]
|
||||
active = False
|
||||
|
||||
@classmethod
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ class ValidateAssemblyNamespaces(pyblish.api.InstancePlugin):
|
|||
label = "Validate Assembly Namespaces"
|
||||
order = pyblish.api.ValidatorOrder
|
||||
families = ["assembly"]
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction]
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
def process(self, instance):
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ class ValidateAssemblyModelTransforms(pyblish.api.InstancePlugin):
|
|||
order = pyblish.api.ValidatorOrder + 0.49
|
||||
label = "Assembly Model Transforms"
|
||||
families = ["assembly"]
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction,
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction,
|
||||
RepairAction]
|
||||
|
||||
prompt_message = ("You are about to reset the matrix to the default values."
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ class ValidateCameraAttributes(pyblish.api.InstancePlugin):
|
|||
families = ['camera']
|
||||
hosts = ['maya']
|
||||
label = 'Camera Attributes'
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction]
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
DEFAULTS = [
|
||||
("filmFitOffset", 0.0),
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ class ValidateCameraContents(pyblish.api.InstancePlugin):
|
|||
families = ['camera']
|
||||
hosts = ['maya']
|
||||
label = 'Camera Contents'
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction]
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction]
|
||||
validate_shapes = True
|
||||
|
||||
@classmethod
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ class ValidateColorSets(pyblish.api.Validator,
|
|||
families = ['model']
|
||||
label = 'Mesh ColorSets'
|
||||
actions = [
|
||||
openpype.hosts.maya.api.action.SelectInvalidAction, RepairAction
|
||||
ayon_core.hosts.maya.api.action.SelectInvalidAction, RepairAction
|
||||
]
|
||||
optional = True
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ class ValidateCycleError(pyblish.api.InstancePlugin,
|
|||
label = "Cycle Errors"
|
||||
hosts = ["maya"]
|
||||
families = ["rig"]
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction]
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction]
|
||||
optional = True
|
||||
|
||||
def process(self, instance):
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ class ValidateInstanceHasMembers(pyblish.api.InstancePlugin):
|
|||
order = ValidateContentsOrder
|
||||
hosts = ["maya"]
|
||||
label = 'Instance has members'
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction]
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
@classmethod
|
||||
def get_invalid(cls, instance):
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ class ValidateInstanceInContext(pyblish.api.InstancePlugin,
|
|||
optional = True
|
||||
hosts = ["maya"]
|
||||
actions = [
|
||||
openpype.hosts.maya.api.action.SelectInvalidAction, RepairAction
|
||||
ayon_core.hosts.maya.api.action.SelectInvalidAction, RepairAction
|
||||
]
|
||||
|
||||
def process(self, instance):
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ class ValidateLookContents(pyblish.api.InstancePlugin):
|
|||
families = ['look']
|
||||
hosts = ['maya']
|
||||
label = 'Look Data Contents'
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction]
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
def process(self, instance):
|
||||
"""Process all the nodes in the instance"""
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ class ValidateLookIdReferenceEdits(pyblish.api.InstancePlugin):
|
|||
families = ['look']
|
||||
hosts = ['maya']
|
||||
label = 'Look Id Reference Edits'
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction,
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction,
|
||||
RepairAction]
|
||||
|
||||
def process(self, instance):
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ class ValidateLookNoDefaultShaders(pyblish.api.InstancePlugin):
|
|||
families = ['look']
|
||||
hosts = ['maya']
|
||||
label = 'Look No Default Shaders'
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction]
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
DEFAULT_SHADERS = {"lambert1", "initialShadingGroup",
|
||||
"initialParticleSE", "particleCloud1"}
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ class ValidateLookSets(pyblish.api.InstancePlugin):
|
|||
families = ['look']
|
||||
hosts = ['maya']
|
||||
label = 'Look Sets'
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction]
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
def process(self, instance):
|
||||
"""Process all the nodes in the instance"""
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ class ValidateShadingEngine(pyblish.api.InstancePlugin):
|
|||
hosts = ["maya"]
|
||||
label = "Look Shading Engine Naming"
|
||||
actions = [
|
||||
openpype.hosts.maya.api.action.SelectInvalidAction, RepairAction
|
||||
ayon_core.hosts.maya.api.action.SelectInvalidAction, RepairAction
|
||||
]
|
||||
|
||||
# The default connections to check
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ class ValidateSingleShader(pyblish.api.InstancePlugin):
|
|||
families = ['look']
|
||||
hosts = ['maya']
|
||||
label = 'Look Single Shader Per Shape'
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction]
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
# The default connections to check
|
||||
def process(self, instance):
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ class ValidateMeshArnoldAttributes(pyblish.api.InstancePlugin,
|
|||
families = ["model"]
|
||||
label = "Mesh Arnold Attributes"
|
||||
actions = [
|
||||
openpype.hosts.maya.api.action.SelectInvalidAction,
|
||||
ayon_core.hosts.maya.api.action.SelectInvalidAction,
|
||||
RepairAction
|
||||
]
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ class ValidateMeshEmpty(pyblish.api.InstancePlugin):
|
|||
families = ["model"]
|
||||
label = "Mesh Empty"
|
||||
actions = [
|
||||
openpype.hosts.maya.api.action.SelectInvalidAction, RepairAction
|
||||
ayon_core.hosts.maya.api.action.SelectInvalidAction, RepairAction
|
||||
]
|
||||
|
||||
@classmethod
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ class ValidateMeshHasUVs(pyblish.api.InstancePlugin,
|
|||
hosts = ['maya']
|
||||
families = ['model']
|
||||
label = 'Mesh Has UVs'
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction]
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction]
|
||||
optional = True
|
||||
|
||||
@classmethod
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ class ValidateMeshLaminaFaces(pyblish.api.InstancePlugin):
|
|||
hosts = ['maya']
|
||||
families = ['model']
|
||||
label = 'Mesh Lamina Faces'
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction]
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
@staticmethod
|
||||
def get_invalid(instance):
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ class ValidateMeshNgons(pyblish.api.Validator):
|
|||
hosts = ["maya"]
|
||||
families = ["model"]
|
||||
label = "Mesh ngons"
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction]
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
@staticmethod
|
||||
def get_invalid(instance):
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ class ValidateMeshNoNegativeScale(pyblish.api.Validator):
|
|||
hosts = ['maya']
|
||||
families = ['model']
|
||||
label = 'Mesh No Negative Scale'
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction]
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
@staticmethod
|
||||
def get_invalid(instance):
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ class ValidateMeshNonManifold(pyblish.api.Validator):
|
|||
hosts = ['maya']
|
||||
families = ['model']
|
||||
label = 'Mesh Non-Manifold Edges/Vertices'
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction]
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
@staticmethod
|
||||
def get_invalid(instance):
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ class ValidateMeshNonZeroEdgeLength(pyblish.api.InstancePlugin,
|
|||
families = ['model']
|
||||
hosts = ['maya']
|
||||
label = 'Mesh Edge Length Non Zero'
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction]
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction]
|
||||
optional = True
|
||||
|
||||
__tolerance = 1e-5
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ class ValidateMeshNormalsUnlocked(pyblish.api.Validator,
|
|||
hosts = ['maya']
|
||||
families = ['model']
|
||||
label = 'Mesh Normals Unlocked'
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction,
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction,
|
||||
RepairAction]
|
||||
optional = True
|
||||
|
||||
|
|
|
|||
|
|
@ -248,7 +248,7 @@ class ValidateMeshHasOverlappingUVs(pyblish.api.InstancePlugin,
|
|||
hosts = ['maya']
|
||||
families = ['model']
|
||||
label = 'Mesh Has Overlapping UVs'
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction]
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction]
|
||||
optional = True
|
||||
|
||||
@classmethod
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ class ValidateMeshShaderConnections(pyblish.api.InstancePlugin):
|
|||
hosts = ['maya']
|
||||
families = ['model']
|
||||
label = "Mesh Shader Connections"
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction,
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction,
|
||||
RepairAction]
|
||||
|
||||
def process(self, instance):
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ class ValidateMeshSingleUVSet(pyblish.api.InstancePlugin,
|
|||
families = ['model', 'pointcache']
|
||||
optional = True
|
||||
label = "Mesh Single UV Set"
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction,
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction,
|
||||
RepairAction]
|
||||
|
||||
@staticmethod
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ class ValidateMeshUVSetMap1(pyblish.api.InstancePlugin,
|
|||
families = ['model']
|
||||
optional = True
|
||||
label = "Mesh has map1 UV Set"
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction,
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction,
|
||||
RepairAction]
|
||||
|
||||
@staticmethod
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ class ValidateMeshVerticesHaveEdges(pyblish.api.InstancePlugin):
|
|||
hosts = ['maya']
|
||||
families = ['model']
|
||||
label = 'Mesh Vertices Have Edges'
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction,
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction,
|
||||
RepairAction]
|
||||
|
||||
@classmethod
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ class ValidateModelContent(pyblish.api.InstancePlugin):
|
|||
hosts = ["maya"]
|
||||
families = ["model"]
|
||||
label = "Model Content"
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction]
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
validate_top_group = True
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ class ValidateModelName(pyblish.api.InstancePlugin,
|
|||
hosts = ["maya"]
|
||||
families = ["model"]
|
||||
label = "Model Name"
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction]
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction]
|
||||
material_file = None
|
||||
database_file = DEFINITION_FILENAME
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ class ValidateMvLookContents(pyblish.api.InstancePlugin,
|
|||
families = ['mvLook']
|
||||
hosts = ['maya']
|
||||
label = 'Validate mvLook Data'
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction]
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
# Allow this validation step to be skipped when you just need to
|
||||
# get things pushed through.
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ class ValidateNoAnimation(pyblish.api.Validator,
|
|||
hosts = ["maya"]
|
||||
families = ["model"]
|
||||
optional = True
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction]
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
def process(self, instance):
|
||||
if not self.is_active(instance.data):
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ class ValidateNoDefaultCameras(pyblish.api.InstancePlugin):
|
|||
hosts = ['maya']
|
||||
families = ['camera']
|
||||
label = "No Default Cameras"
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction]
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
@staticmethod
|
||||
def get_invalid(instance):
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ class ValidateNoNamespace(pyblish.api.InstancePlugin):
|
|||
hosts = ['maya']
|
||||
families = ['model']
|
||||
label = 'No Namespaces'
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction,
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction,
|
||||
RepairAction]
|
||||
|
||||
@staticmethod
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ class ValidateNoNullTransforms(pyblish.api.InstancePlugin):
|
|||
families = ['model']
|
||||
label = 'No Empty/Null Transforms'
|
||||
actions = [RepairAction,
|
||||
openpype.hosts.maya.api.action.SelectInvalidAction]
|
||||
ayon_core.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
@staticmethod
|
||||
def get_invalid(instance):
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ class ValidateNoUnknownNodes(pyblish.api.InstancePlugin,
|
|||
families = ['model', 'rig']
|
||||
optional = True
|
||||
label = "Unknown Nodes"
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction]
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
@staticmethod
|
||||
def get_invalid(instance):
|
||||
|
|
|
|||
|
|
@ -28,8 +28,8 @@ class ValidateNodeIDs(pyblish.api.InstancePlugin):
|
|||
"yetiRig",
|
||||
"assembly"]
|
||||
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction,
|
||||
openpype.hosts.maya.api.action.GenerateUUIDsOnInvalidAction]
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction,
|
||||
ayon_core.hosts.maya.api.action.GenerateUUIDsOnInvalidAction]
|
||||
|
||||
def process(self, instance):
|
||||
"""Process all meshes"""
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ class ValidateNodeIdsDeformedShape(pyblish.api.InstancePlugin):
|
|||
hosts = ['maya']
|
||||
label = 'Deformed shape ids'
|
||||
actions = [
|
||||
openpype.hosts.maya.api.action.SelectInvalidAction,
|
||||
ayon_core.hosts.maya.api.action.SelectInvalidAction,
|
||||
RepairAction
|
||||
]
|
||||
|
||||
|
|
|
|||
|
|
@ -24,8 +24,8 @@ class ValidateNodeIdsInDatabase(pyblish.api.InstancePlugin):
|
|||
hosts = ['maya']
|
||||
families = ["*"]
|
||||
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction,
|
||||
openpype.hosts.maya.api.action.GenerateUUIDsOnInvalidAction]
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction,
|
||||
ayon_core.hosts.maya.api.action.GenerateUUIDsOnInvalidAction]
|
||||
|
||||
def process(self, instance):
|
||||
invalid = self.get_invalid(instance)
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@ class ValidateNodeIDsRelated(pyblish.api.InstancePlugin,
|
|||
"rig"]
|
||||
optional = True
|
||||
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction,
|
||||
openpype.hosts.maya.api.action.GenerateUUIDsOnInvalidAction]
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction,
|
||||
ayon_core.hosts.maya.api.action.GenerateUUIDsOnInvalidAction]
|
||||
|
||||
def process(self, instance):
|
||||
"""Process all nodes in instance (including hierarchy)"""
|
||||
|
|
|
|||
|
|
@ -23,8 +23,8 @@ class ValidateNodeIdsUnique(pyblish.api.InstancePlugin):
|
|||
"rig",
|
||||
"yetiRig"]
|
||||
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction,
|
||||
openpype.hosts.maya.api.action.GenerateUUIDsOnInvalidAction]
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction,
|
||||
ayon_core.hosts.maya.api.action.GenerateUUIDsOnInvalidAction]
|
||||
|
||||
def process(self, instance):
|
||||
"""Process all meshes"""
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ class ValidateNodeNoGhosting(pyblish.api.InstancePlugin):
|
|||
hosts = ['maya']
|
||||
families = ['model', 'rig']
|
||||
label = "No Ghosting"
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction]
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
_attributes = {'ghosting': 0}
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ class ValidateRenderNoDefaultCameras(pyblish.api.InstancePlugin):
|
|||
hosts = ['maya']
|
||||
families = ['renderlayer']
|
||||
label = "No Default Cameras Renderable"
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction]
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
@staticmethod
|
||||
def get_invalid(instance):
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ class ValidateRenderSingleCamera(pyblish.api.InstancePlugin):
|
|||
hosts = ['maya']
|
||||
families = ["renderlayer",
|
||||
"vrayscene"]
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction]
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
R_CAMERA_TOKEN = re.compile(r'%c|<camera>', re.IGNORECASE)
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ class ValidateRenderLayerAOVs(pyblish.api.InstancePlugin):
|
|||
label = "Render Passes / AOVs Are Registered"
|
||||
hosts = ["maya"]
|
||||
families = ["renderlayer"]
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction]
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
def process(self, instance):
|
||||
invalid = self.get_invalid(instance)
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ class ValidateRigContents(pyblish.api.InstancePlugin):
|
|||
label = "Rig Contents"
|
||||
hosts = ["maya"]
|
||||
families = ["rig"]
|
||||
action = [openpype.hosts.maya.api.action.SelectInvalidAction]
|
||||
action = [ayon_core.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
accepted_output = ["mesh", "transform"]
|
||||
accepted_controllers = ["transform"]
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ class ValidateRigControllers(pyblish.api.InstancePlugin):
|
|||
hosts = ["maya"]
|
||||
families = ["rig"]
|
||||
actions = [RepairAction,
|
||||
openpype.hosts.maya.api.action.SelectInvalidAction]
|
||||
ayon_core.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
# Default controller values
|
||||
CONTROLLER_DEFAULTS = {
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ class ValidateRigControllersArnoldAttributes(pyblish.api.InstancePlugin):
|
|||
hosts = ["maya"]
|
||||
families = ["rig"]
|
||||
actions = [RepairAction,
|
||||
openpype.hosts.maya.api.action.SelectInvalidAction]
|
||||
ayon_core.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
attributes = [
|
||||
"rcurve",
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ class ValidateRigJointsHidden(pyblish.api.InstancePlugin):
|
|||
hosts = ['maya']
|
||||
families = ['rig']
|
||||
label = "Joints Hidden"
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction,
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction,
|
||||
RepairAction]
|
||||
|
||||
@staticmethod
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ class ValidateRigOutSetNodeIds(pyblish.api.InstancePlugin):
|
|||
hosts = ['maya']
|
||||
label = 'Rig Out Set Node Ids'
|
||||
actions = [
|
||||
openpype.hosts.maya.api.action.SelectInvalidAction,
|
||||
ayon_core.hosts.maya.api.action.SelectInvalidAction,
|
||||
RepairAction
|
||||
]
|
||||
allow_history_only = False
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ class ValidateRigOutputIds(pyblish.api.InstancePlugin):
|
|||
hosts = ["maya"]
|
||||
families = ["rig"]
|
||||
actions = [RepairAction,
|
||||
openpype.hosts.maya.api.action.SelectInvalidAction]
|
||||
ayon_core.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
def process(self, instance):
|
||||
invalid = self.get_invalid(instance, compute=True)
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ class ValidateShaderName(pyblish.api.InstancePlugin,
|
|||
families = ["look"]
|
||||
hosts = ['maya']
|
||||
label = 'Validate Shaders Name'
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction]
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction]
|
||||
regex = r'(?P<asset>.*)_(.*)_SHD'
|
||||
|
||||
# The default connections to check
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ class ValidateShapeDefaultNames(pyblish.api.InstancePlugin,
|
|||
families = ['model']
|
||||
optional = True
|
||||
label = "Shape Default Naming"
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction,
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction,
|
||||
RepairAction]
|
||||
|
||||
@staticmethod
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ class ValidateShapeRenderStats(pyblish.api.Validator):
|
|||
hosts = ['maya']
|
||||
families = ['model']
|
||||
label = 'Shape Default Render Stats'
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction,
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction,
|
||||
RepairAction]
|
||||
|
||||
defaults = {'castsShadows': 1,
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ class ValidateShapeZero(pyblish.api.Validator):
|
|||
families = ["model"]
|
||||
label = "Shape Zero (Freeze)"
|
||||
actions = [
|
||||
openpype.hosts.maya.api.action.SelectInvalidAction,
|
||||
ayon_core.hosts.maya.api.action.SelectInvalidAction,
|
||||
RepairAction
|
||||
]
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ class ValidateSkinclusterDeformerSet(pyblish.api.InstancePlugin):
|
|||
hosts = ['maya']
|
||||
families = ['fbx']
|
||||
label = "Skincluster Deformer Relationships"
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction]
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
def process(self, instance):
|
||||
"""Process all the transform nodes in the instance"""
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ class ValidateStepSize(pyblish.api.InstancePlugin):
|
|||
families = ['camera',
|
||||
'pointcache',
|
||||
'animation']
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction]
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
MIN = 0.01
|
||||
MAX = 1.0
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ class ValidateTransformNamingSuffix(pyblish.api.InstancePlugin,
|
|||
families = ['model']
|
||||
optional = True
|
||||
label = 'Suffix Naming Conventions'
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction]
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction]
|
||||
SUFFIX_NAMING_TABLE = {"mesh": ["_GEO", "_GES", "_GEP", "_OSD"],
|
||||
"nurbsCurve": ["_CRV"],
|
||||
"nurbsSurface": ["_NRB"],
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ class ValidateTransformZero(pyblish.api.Validator):
|
|||
hosts = ["maya"]
|
||||
families = ["model"]
|
||||
label = "Transform Zero (Freeze)"
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction]
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
_identity = [1.0, 0.0, 0.0, 0.0,
|
||||
0.0, 1.0, 0.0, 0.0,
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ class ValidateUniqueNames(pyblish.api.Validator):
|
|||
hosts = ["maya"]
|
||||
families = ["model"]
|
||||
label = "Unique transform name"
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction]
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
@staticmethod
|
||||
def get_invalid(instance):
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ class ValidateUnrealMeshTriangulated(pyblish.api.InstancePlugin):
|
|||
hosts = ["maya"]
|
||||
families = ["staticMesh"]
|
||||
label = "Mesh is Triangulated"
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction]
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction]
|
||||
active = False
|
||||
|
||||
@classmethod
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ class ValidateUnrealStaticMeshName(pyblish.api.InstancePlugin,
|
|||
hosts = ["maya"]
|
||||
families = ["staticMesh"]
|
||||
label = "Unreal Static Mesh Name"
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction]
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction]
|
||||
regex_mesh = r"(?P<renderName>.*))"
|
||||
regex_collision = r"(?P<renderName>.*)"
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ class ValidateAlembicVisibleOnly(pyblish.api.InstancePlugin):
|
|||
label = "Alembic Visible Only"
|
||||
hosts = ["maya"]
|
||||
families = ["pointcache", "animation"]
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction]
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
def process(self, instance):
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ class ValidateVrayProxyMembers(pyblish.api.InstancePlugin):
|
|||
label = 'VRay Proxy Members'
|
||||
hosts = ['maya']
|
||||
families = ['vrayproxy']
|
||||
actions = [openpype.hosts.maya.api.action.SelectInvalidAction]
|
||||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
def process(self, instance):
|
||||
|
||||
|
|
|
|||
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