Skip to content

Commit

Permalink
Fix plugins settings for shot creator.
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-ynput committed Dec 11, 2024
1 parent 02e9825 commit ee3ac19
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
12 changes: 6 additions & 6 deletions client/ayon_flame/plugins/create/create_shot_clip.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ def header_label(text):
"segmentIndex",
label="Segment Index",
tooltip="Take number from segment index",
default=True,
default=presets.get("segmentIndex", True),
),
NumberDef(
"countFrom",
Expand Down Expand Up @@ -490,13 +490,13 @@ def header_label(text):
"export_audio",
label="Include audio",
tooltip="Process subsets with corresponding audio",
default=False,
default=presets.get("export_audio", False),
),
BoolDef(
"sourceResolution",
label="Source resolution",
tooltip="Is resolution taken from timeline or source?",
default=False,
default=presets.get("sourceResolution", False),
),

# shotAttr
Expand Down Expand Up @@ -525,19 +525,19 @@ def header_label(text):
"includeHandles",
label="Include handles",
tooltip="Should the handles be included?",
default=False,
default=presets.get("includeHandles", True),
),
BoolDef(
"retimedHandles",
label="Retimed handles",
tooltip="Should the handles be retimed?",
default=True,
default=presets.get("retimedHandles", True),
),
BoolDef(
"retimedFramerange",
label="Retimed framerange",
tooltip="Should the framerange be retimed?",
default=True,
default=presets.get("retimedFramerange", True),
),
]

Expand Down
12 changes: 12 additions & 0 deletions server/settings/create_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,18 @@ class CreateShotClipModel(BaseSettingsModel):
section="Vertical Synchronization Of Attributes"
)

export_audio: bool = SettingsField(
False,
title="Include audio",
section="Process subsets with corresponding audio"
)

sourceResolution: bool = SettingsField(
False,
title="Source resolution",
section="Get shot resolution from clip source resolution"
)

workfileFrameStart: int = SettingsField(
1001,
title="Workfiles Start Frame",
Expand Down

0 comments on commit ee3ac19

Please sign in to comment.