Apply suggestions from code review

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
This commit is contained in:
Robin De Lillo 2024-11-18 08:16:02 -05:00 committed by GitHub
parent f6547264fb
commit d2229fbb15
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 5 deletions

View file

@ -13,7 +13,6 @@ class CollectHierarchy(pyblish.api.ContextPlugin):
label = "Collect Hierarchy"
order = pyblish.api.CollectorOrder - 0.076
families = ["shot", "csv_ingest_shot"]
hosts = ["resolve", "hiero", "flame", "traypublisher"]
def process(self, context):
@ -38,9 +37,12 @@ class CollectHierarchy(pyblish.api.ContextPlugin):
):
continue
# exclude if not CSV ingest shot and not masterLayer True
if ("csv_ingest_shot" not in families and
not instance.data.get("heroTrack")):
# Skip if is not a hero track
# - skip check for traypubliser CSV ingest
if (
not instance.data.get("heroTrack")
and "csv_ingest_shot" not in families
):
continue
shot_data = {
@ -52,6 +54,7 @@ class CollectHierarchy(pyblish.api.ContextPlugin):
"comments": instance.data.get("comments", []),
}
# TODO Fill in reason why we don't set attributes for csv_ingest_shot
if "csv_ingest_shot" not in families:
shot_data["attributes"] = {
"handleStart": instance.data["handleStart"],

View file

@ -22,7 +22,6 @@ class ExtractHierarchyToAYON(pyblish.api.ContextPlugin):
order = pyblish.api.ExtractorOrder - 0.01
label = "Extract Hierarchy To AYON"
families = ["clip", "shot", "csv_ingest_shot"]
def process(self, context):
if not context.data.get("hierarchyContext"):