diff --git a/colorbleed/plugins/maya/publish/collect_vray_scene.py b/colorbleed/plugins/maya/publish/collect_vray_scene.py index 2f7d4c2839..612670478e 100644 --- a/colorbleed/plugins/maya/publish/collect_vray_scene.py +++ b/colorbleed/plugins/maya/publish/collect_vray_scene.py @@ -37,6 +37,11 @@ class CollectVRayScene(pyblish.api.ContextPlugin): vrscene_data = host.read(vray_scene) + assert cmds.ls("vraySettings", type="VRaySettingsNode"), ( + "VRay Settings node does not exists. " + "Please ensure V-Ray is the current renderer." + ) + # Output data start_frame = int(cmds.getAttr("defaultRenderGlobals.startFrame")) end_frame = int(cmds.getAttr("defaultRenderGlobals.endFrame"))