Skip to content

Commit

Permalink
Report reviewable attributes enhancements from Hiero.
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-ynput committed Nov 13, 2024
1 parent 0ee6260 commit 8c6f727
Showing 1 changed file with 28 additions and 19 deletions.
47 changes: 28 additions & 19 deletions client/ayon_flame/plugins/create/create_shot_clip.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,25 +235,34 @@ def get_attr_defs_for_instance(self, instance):
else:
gui_tracks = []

# Review track visibility
current_review = instance.creator_attributes.get("review", False)
instance_attributes.extend(
[
BoolDef(
"review",
label="Review",
tooltip="Switch to reviewable instance",
default=False,
),
EnumDef(
"reviewTrack",
label="Review Track",
tooltip=("Selecting source from review tracks."),
items=gui_tracks,
disabled=not current_review,
),
]
)
instance_attributes = [
TextDef(
"parentInstance",
label="Linked to",
disabled=True,
)
]

if self.product_type == "plate":
current_review = instance.creator_attributes.get("review", False)
instance_attributes.extend(
[
BoolDef(
"review",
label="Review",
tooltip="Switch to reviewable instance",
default=False,
),
EnumDef(
"reviewTrack",
label="Review Track",
tooltip=("Selecting source from review tracks."),
items=gui_tracks,
disabled=not current_review,
),
]
)

return instance_attributes


Expand Down

0 comments on commit 8c6f727

Please sign in to comment.