-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from ynput/enhancement/AY-7307_Harmony-Look-fo…
…r-composition-node-and-connect-automatically-if-not-Use-selection Auto connect to composition node
- Loading branch information
Showing
6 changed files
with
91 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# -*- coding: utf-8 -*- | ||
"""Package declaring AYON addon 'harmony' version.""" | ||
__version__ = "0.2.2+dev" | ||
__version__ = "0.2.2+dev.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
from ayon_server.settings import BaseSettingsModel, SettingsField | ||
|
||
|
||
class CreateRenderPluginModel(BaseSettingsModel): | ||
enabled: bool = SettingsField(True, title="Enabled") | ||
active_on_create: bool = SettingsField(True, title="Active by default") | ||
default_variants: list[str] = SettingsField( | ||
default_factory=list, | ||
title="Default Variants" | ||
) | ||
auto_connect: bool = SettingsField(False, | ||
title="Auto connect to Composite node") | ||
composition_node_pattern: str = SettingsField( | ||
"Composition", | ||
title="Regex pattern for Composite node name", | ||
description="Provide regex pattern to find Composite node to " | ||
"connect newly Write node to" | ||
) | ||
|
||
|
||
class HarmonyCreatePlugins(BaseSettingsModel): | ||
CreateRender: CreateRenderPluginModel = SettingsField( | ||
title="Render", | ||
default_factory=CreateRenderPluginModel, | ||
) | ||
CreateFarmRender: CreateRenderPluginModel = SettingsField( | ||
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" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters