mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +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"
|
label = "Collect Hierarchy"
|
||||||
order = pyblish.api.CollectorOrder - 0.076
|
order = pyblish.api.CollectorOrder - 0.076
|
||||||
families = ["shot", "csv_ingest_shot"]
|
|
||||||
hosts = ["resolve", "hiero", "flame", "traypublisher"]
|
hosts = ["resolve", "hiero", "flame", "traypublisher"]
|
||||||
|
|
||||||
def process(self, context):
|
def process(self, context):
|
||||||
|
|
@ -38,9 +37,12 @@ class CollectHierarchy(pyblish.api.ContextPlugin):
|
||||||
):
|
):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# exclude if not CSV ingest shot and not masterLayer True
|
# Skip if is not a hero track
|
||||||
if ("csv_ingest_shot" not in families and
|
# - skip check for traypubliser CSV ingest
|
||||||
not instance.data.get("heroTrack")):
|
if (
|
||||||
|
not instance.data.get("heroTrack")
|
||||||
|
and "csv_ingest_shot" not in families
|
||||||
|
):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
shot_data = {
|
shot_data = {
|
||||||
|
|
@ -52,6 +54,7 @@ class CollectHierarchy(pyblish.api.ContextPlugin):
|
||||||
"comments": instance.data.get("comments", []),
|
"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:
|
if "csv_ingest_shot" not in families:
|
||||||
shot_data["attributes"] = {
|
shot_data["attributes"] = {
|
||||||
"handleStart": instance.data["handleStart"],
|
"handleStart": instance.data["handleStart"],
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,6 @@ class ExtractHierarchyToAYON(pyblish.api.ContextPlugin):
|
||||||
|
|
||||||
order = pyblish.api.ExtractorOrder - 0.01
|
order = pyblish.api.ExtractorOrder - 0.01
|
||||||
label = "Extract Hierarchy To AYON"
|
label = "Extract Hierarchy To AYON"
|
||||||
families = ["clip", "shot", "csv_ingest_shot"]
|
|
||||||
|
|
||||||
def process(self, context):
|
def process(self, context):
|
||||||
if not context.data.get("hierarchyContext"):
|
if not context.data.get("hierarchyContext"):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue