Skip to content

Commit

Permalink
Added IncrementWriteNodePath to Settings
Browse files Browse the repository at this point in the history
  • Loading branch information
kalisp committed Jan 30, 2025
1 parent 3872b18 commit 0b8e01f
Showing 1 changed file with 23 additions and 9 deletions.
32 changes: 23 additions & 9 deletions server/settings/publish_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,12 +226,6 @@ class ExtractSlateFrameModel(BaseSettingsModel):
)


class IncrementScriptVersionModel(BaseSettingsModel):
enabled: bool = SettingsField(title="Enabled")
optional: bool = SettingsField(title="Optional")
active: bool = SettingsField(title="Active")


class PublishPluginsModel(BaseSettingsModel):
CollectInstanceData: CollectInstanceDataModel = SettingsField(
title="Collect Instance Version",
Expand Down Expand Up @@ -285,10 +279,25 @@ class PublishPluginsModel(BaseSettingsModel):
title="Extract Slate Frame",
default_factory=ExtractSlateFrameModel
)
IncrementScriptVersion: IncrementScriptVersionModel = SettingsField(
IncrementScriptVersion: OptionalPluginModel = SettingsField(
title="Increment Workfile Version",
default_factory=IncrementScriptVersionModel,
section="Integrators"
default_factory=OptionalPluginModel,
section="Integrators",
description=(
"Bumps up version of workfile if all no errors in previous "
"plugins."
)
)
IncrementWriteNodePath: OptionalPluginModel = SettingsField(
title="Increment path in Write node",
default_factory=OptionalPluginModel,
section="Integrators",
description=(
"Updates version portion of path in Write node with current "
"workfile version. This allows have versioned intermediate "
"`renders` subfolders. "
"It depends on setting `ayon+settings://core/tools/publish/custom_staging_dir_profiles/0`"
)
)


Expand Down Expand Up @@ -432,5 +441,10 @@ class PublishPluginsModel(BaseSettingsModel):
"enabled": True,
"optional": True,
"active": True
},
"IncrementWriteNodePath": {
"enabled": False,
"optional": True,
"active": True
}
}

0 comments on commit 0b8e01f

Please sign in to comment.