mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Apply suggestions from code review
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
This commit is contained in:
parent
f6547264fb
commit
d2229fbb15
2 changed files with 7 additions and 5 deletions
|
|
@ -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"],
|
||||
|
|
|
|||
|
|
@ -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"):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue