mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-27 14:22:37 +01:00
trayp: adding reivew toggle to instance
also add audio family condition for available ffmpeg streams
This commit is contained in:
parent
eff02322ef
commit
4bd7d4f43e
1 changed files with 18 additions and 7 deletions
|
|
@ -91,6 +91,15 @@ class EditorialClipInstanceCreatorBase(HiddenTrayPublishCreator):
|
|||
|
||||
return new_instance
|
||||
|
||||
def get_instance_attr_defs(self):
|
||||
return [
|
||||
BoolDef(
|
||||
"add_review_family",
|
||||
default=True,
|
||||
label="Review"
|
||||
)
|
||||
]
|
||||
|
||||
|
||||
class EditorialShotInstanceCreator(EditorialClipInstanceCreatorBase):
|
||||
identifier = "editorial_shot"
|
||||
|
|
@ -114,7 +123,6 @@ class EditorialShotInstanceCreator(EditorialClipInstanceCreatorBase):
|
|||
attr_defs.extend(CLIP_ATTR_DEFS)
|
||||
return attr_defs
|
||||
|
||||
|
||||
class EditorialPlateInstanceCreator(EditorialClipInstanceCreatorBase):
|
||||
identifier = "editorial_plate"
|
||||
family = "plate"
|
||||
|
|
@ -345,6 +353,13 @@ or updating already created. Publishing will create OTIO file.
|
|||
))
|
||||
|
||||
for _fpreset in family_presets:
|
||||
# exclude audio family if no audio stream
|
||||
if (
|
||||
_fpreset["family"] == "audio"
|
||||
and not media_data.get("audio")
|
||||
):
|
||||
continue
|
||||
|
||||
instance = self._make_subset_instance(
|
||||
clip,
|
||||
_fpreset,
|
||||
|
|
@ -447,12 +462,8 @@ or updating already created. Publishing will create OTIO file.
|
|||
"outputFileType": _fpreset["output_file_type"],
|
||||
"parent_instance_id": parenting_data["instance_id"],
|
||||
"creator_attributes": {
|
||||
"parent_instance": parenting_data["instance_label"]
|
||||
},
|
||||
"publish_attributes": {
|
||||
"CollectReviewFamily": {
|
||||
"add_review_family": _fpreset.get("review")
|
||||
}
|
||||
"parent_instance": parenting_data["instance_label"],
|
||||
"add_review_family": _fpreset.get("review")
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue