mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 08:54:53 +01:00
Only Hierarchy tagged clips should generate shots.
This commit is contained in:
parent
f9c606a5d5
commit
7131dbfeff
1 changed files with 12 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue