Skip to content

Commit

Permalink
Merge pull request #25 from ynput/bugfix/apply_setting_defaults
Browse files Browse the repository at this point in the history
Bugfix/apply setting defaults
  • Loading branch information
jakubjezek001 authored Jan 17, 2025
2 parents 3ec2e03 + 8657663 commit 19d1cfb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 34 deletions.
22 changes: 1 addition & 21 deletions server/settings/creator_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class CreateRenderPluginModel(BaseSettingsModel):
auto_connect: bool = SettingsField(False,
title="Auto connect to Composite node")
composition_node_pattern: str = SettingsField(
"Composition",
"Composite",
title="Regex pattern for Composite node name",
description="Provide regex pattern to find Composite node to "
"connect newly Write node to"
Expand All @@ -27,23 +27,3 @@ class HarmonyCreatePlugins(BaseSettingsModel):
title="Render on Farm",
default_factory=CreateRenderPluginModel,
)


DEFAULT_CREATE_SETTINGS = {
"CreateRender": {
"enabled": True,
"default_variants": [
"Main"
],
"auto_connect": False,
"composition_node_pattern": "Composite"
},
"CreateFarmRender": {
"enabled": True,
"default_variants": [
"Main"
],
"auto_connect": False,
"composition_node_pattern": "Composite"
}
}
28 changes: 15 additions & 13 deletions server/settings/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,22 @@ class HarmonySettings(BaseSettingsModel):


DEFAULT_HARMONY_SETTING = {
"load": {
"ImageSequenceLoader": {
"family": [
"shot",
"render",
"image",
"plate",
"reference"
"create": {
"CreateRender": {
"enabled": True,
"default_variants": [
"Main"
],
"representations": [
"jpeg",
"png",
"jpg"
]
"auto_connect": False,
"composition_node_pattern": "Composite"
},
"CreateFarmRender": {
"enabled": True,
"default_variants": [
"Main"
],
"auto_connect": False,
"composition_node_pattern": "Composite"
}
},
"publish": {
Expand Down

0 comments on commit 19d1cfb

Please sign in to comment.