From 2ddd49ed4c97da1658e75a87557f8ee369f87870 Mon Sep 17 00:00:00 2001 From: Milan Kolar Date: Wed, 12 Aug 2020 23:04:19 +0200 Subject: [PATCH] limit resources to explicit families --- .../global/publish/collect_resources_path.py | 34 +++++++++++++++++++ .../publish/collect_matching_asset.py | 2 +- 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/pype/plugins/global/publish/collect_resources_path.py b/pype/plugins/global/publish/collect_resources_path.py index 734d1f84e4..04a33cd5be 100644 --- a/pype/plugins/global/publish/collect_resources_path.py +++ b/pype/plugins/global/publish/collect_resources_path.py @@ -20,6 +20,40 @@ class CollectResourcesPath(pyblish.api.InstancePlugin): label = "Collect Resources Path" order = pyblish.api.CollectorOrder + 0.495 + families = ["workfile", + "pointcache", + "camera", + "animation", + "model", + "mayaAscii", + "setdress", + "layout", + "ass", + "vdbcache", + "scene", + "vrayproxy", + "render", + "prerender", + "imagesequence", + "rendersetup", + "rig", + "plate", + "look", + "lut", + "yetiRig", + "yeticache", + "nukenodes", + "gizmo", + "source", + "matchmove", + "image", + "source", + "assembly", + "fbx", + "textures", + "action", + "background" + ] def process(self, instance): anatomy = instance.context.data["anatomy"] diff --git a/pype/plugins/standalonepublisher/publish/collect_matching_asset.py b/pype/plugins/standalonepublisher/publish/collect_matching_asset.py index e8b1343c0e..48065c4662 100644 --- a/pype/plugins/standalonepublisher/publish/collect_matching_asset.py +++ b/pype/plugins/standalonepublisher/publish/collect_matching_asset.py @@ -14,7 +14,7 @@ class CollectMatchingAssetToInstance(pyblish.api.InstancePlugin): label = "Collect Matching Asset to Instance" order = pyblish.api.CollectorOrder - 0.05 hosts = ["standalonepublisher"] - family = ["background_batch"] + families = ["background_batch"] def process(self, instance): source_file = os.path.basename(instance.data["source"]).lower()