Skip to content

Commit

Permalink
New fields and disabled properties.
Browse files Browse the repository at this point in the history
- Update clip attributes and instance creator classes
  • Loading branch information
jakubjezek001 committed Sep 6, 2024
1 parent b23b749 commit 31f8fc0
Showing 1 changed file with 48 additions and 13 deletions.
61 changes: 48 additions & 13 deletions client/ayon_traypublisher/plugins/create/create_editorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,25 +35,55 @@
{"value": 24, "label": "24"},
{"value": 25, "label": "25"},
{"value": 29.97, "label": "29.97"},
{"value": 30, "label": "30"}
{"value": 30, "label": "30"},
],
label="FPS"
label="FPS",
),
NumberDef("workfile_start_frame", default=1001, label="Workfile start frame"),
NumberDef("handle_start", default=0, label="Handle start"),
NumberDef("handle_end", default=0, label="Handle end"),
NumberDef(
"workfile_start_frame",
default=1001,
label="Workfile start frame"
"frameStart",
default=0,
label="Frame start",
disabled=True,
),
NumberDef(
"frameEnd",
default=0,
label="Frame end",
disabled=True,
),
NumberDef(
"clipIn",
default=0,
label="Clip in",
disabled=True,
),
NumberDef(
"clipOut",
default=0,
label="Clip out",
disabled=True,
),
NumberDef(
"handle_start",
"clipDuration",
default=0,
label="Handle start"
label="Clip duration",
disabled=True,
),
NumberDef(
"handle_end",
"sourceIn",
default=0,
label="Handle end"
)
label="Media source in",
disabled=True,
),
NumberDef(
"sourceOut",
default=0,
label="Media source out",
disabled=True,
),
]


Expand All @@ -79,7 +109,12 @@ def get_instance_attr_defs(self):
"add_review_family",
default=True,
label="Review"
)
),
TextDef(
"parent_instance",
label="Linked to",
disabled=True
),
]


Expand All @@ -96,7 +131,8 @@ def get_instance_attr_defs(self):
instance_attributes = [
TextDef(
"folderPath",
label="Folder path"
label="Folder path",
disabled=True,
)
]
instance_attributes.extend(CLIP_ATTR_DEFS)
Expand Down Expand Up @@ -318,7 +354,6 @@ def _get_path_from_file_data(self, file_path_data, multi=False):
"""
return_path_list = []


if isinstance(file_path_data, list):
return_path_list = [
os.path.join(f["directory"], f["filenames"][0])
Expand Down

0 comments on commit 31f8fc0

Please sign in to comment.