From 4482d2b726ecf207e5f440dd72f93ee9bceba7ea Mon Sep 17 00:00:00 2001 From: wikoreman Date: Fri, 24 Aug 2018 14:46:57 +0200 Subject: [PATCH] reset order and added comment --- colorbleed/plugins/maya/publish/collect_renderlayers.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/colorbleed/plugins/maya/publish/collect_renderlayers.py b/colorbleed/plugins/maya/publish/collect_renderlayers.py index 2b6d437e95..122a70973d 100644 --- a/colorbleed/plugins/maya/publish/collect_renderlayers.py +++ b/colorbleed/plugins/maya/publish/collect_renderlayers.py @@ -9,7 +9,7 @@ import colorbleed.maya.lib as lib class CollectMayaRenderlayers(pyblish.api.ContextPlugin): """Gather instances by active render layers""" - order = pyblish.api.CollectorOrder + 0.01 + order = pyblish.api.CollectorOrder hosts = ["maya"] label = "Render Layers" @@ -32,7 +32,8 @@ class CollectMayaRenderlayers(pyblish.api.ContextPlugin): context.data["startFrame"] = start_frame context.data["endFrame"] = end_frame - # Get all linked renderlayers + # Get all valid renderlayers + # This is how Maya populates the renderlayer display rlm_attribute = "renderLayerManager.renderLayerId" connected_layers = cmds.listConnections(rlm_attribute) or [] valid_layers = set(connected_layers)