Only Hierarchy tagged clips should generate shots.

This commit is contained in:
Toke Jepsen 2019-06-26 10:25:58 +01:00
parent f9c606a5d5
commit 7131dbfeff

View file

@ -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.