diff --git a/pype/plugins/maya/create/create_render.py b/pype/plugins/maya/create/create_render.py index dbcade9b77..b6eb2e8daa 100644 --- a/pype/plugins/maya/create/create_render.py +++ b/pype/plugins/maya/create/create_render.py @@ -68,7 +68,7 @@ class CreateRender(avalon.maya.Creator): _image_prefixes = { 'mentalray': 'maya///_', - 'vray': '"maya///', + 'vray': 'maya///', 'arnold': 'maya///_', 'renderman': 'maya///_', 'redshift': 'maya///_' diff --git a/pype/plugins/maya/publish/collect_render.py b/pype/plugins/maya/publish/collect_render.py index 445f646cb5..eed44fbefd 100644 --- a/pype/plugins/maya/publish/collect_render.py +++ b/pype/plugins/maya/publish/collect_render.py @@ -157,7 +157,7 @@ class CollectMayaRender(pyblish.api.ContextPlugin): # in expectedFiles. If so, raise error as we cannot attach AOV # (considered to be subset on its own) to another subset if attach_to: - assert len(exp_files[0].keys()) == 1, ( + assert isinstance(exp_files, list), ( "attaching multiple AOVs or renderable cameras to " "subset is not supported" ) diff --git a/pype/plugins/maya/publish/validate_mesh_arnold_attributes.py b/pype/plugins/maya/publish/validate_mesh_arnold_attributes.py index 1ddf0285d4..04a3cf3c79 100644 --- a/pype/plugins/maya/publish/validate_mesh_arnold_attributes.py +++ b/pype/plugins/maya/publish/validate_mesh_arnold_attributes.py @@ -1,5 +1,5 @@ import pymel.core as pc - +from maya import cmds import pyblish.api import pype.api import pype.hosts.maya.action @@ -23,6 +23,11 @@ class ValidateMeshArnoldAttributes(pyblish.api.InstancePlugin): pype.api.RepairAction ] optional = True + if cmds.getAttr( + "defaultRenderGlobals.currentRenderer").lower() == "arnold": + active = True + else: + active = False @classmethod def get_invalid_attributes(cls, instance, compute=False):