From 7131dbfeffbf7da73e32d6db129da1d24f956783 Mon Sep 17 00:00:00 2001 From: Toke Jepsen Date: Wed, 26 Jun 2019 10:25:58 +0100 Subject: [PATCH] Only Hierarchy tagged clips should generate shots. --- pype/plugins/nukestudio/publish/collect_shot.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pype/plugins/nukestudio/publish/collect_shot.py b/pype/plugins/nukestudio/publish/collect_shot.py index 2b371b1aac..a5116ace4b 100644 --- a/pype/plugins/nukestudio/publish/collect_shot.py +++ b/pype/plugins/nukestudio/publish/collect_shot.py @@ -11,6 +11,18 @@ class CollectShot(api.InstancePlugin): families = ["clip"] def process(self, instance): + hierarchy_tagged = False + for tag in instance.data["tags"]: + if tag["name"].lower() == "hierarchy": + hierarchy_tagged = True + + if not hierarchy_tagged: + self.log.debug( + "Skipping \"{}\" because its not tagged with " + "\"Hierarchy\"".format(instance) + ) + return + context = instance.context # Collect data.