From ee3ac1928f4c22e339a8be58c0454083e387a0b3 Mon Sep 17 00:00:00 2001 From: "robin@ynput.io" Date: Wed, 11 Dec 2024 16:08:01 -0500 Subject: [PATCH] Fix plugins settings for shot creator. --- client/ayon_flame/plugins/create/create_shot_clip.py | 12 ++++++------ server/settings/create_plugins.py | 12 ++++++++++++ 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/client/ayon_flame/plugins/create/create_shot_clip.py b/client/ayon_flame/plugins/create/create_shot_clip.py index 695c747..3196834 100644 --- a/client/ayon_flame/plugins/create/create_shot_clip.py +++ b/client/ayon_flame/plugins/create/create_shot_clip.py @@ -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", @@ -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 @@ -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), ), ] diff --git a/server/settings/create_plugins.py b/server/settings/create_plugins.py index 2f17ec4..e50cbfd 100644 --- a/server/settings/create_plugins.py +++ b/server/settings/create_plugins.py @@ -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",