mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
AYON: Addons creation enhancements (#5356)
* updated nuke settings * added addon version to zip filename * fix Pattern type hint * added ignored subdirs for openpype * added titles to addons * type hint fix - again * modified settings conversion * updated aftereffects settings * updated blender settings * updated clockify settings * updated core settings * updated deadline settings * updated harmo settings * updated kistsu settings * updated maya settings * updated muster settings * updated royal render settings * updated timers manager settings * updated traypublisher settings * implemented conversion of rr paths * formatting fix
This commit is contained in:
parent
6deace97d6
commit
b43cac0b51
41 changed files with 341 additions and 246 deletions
|
|
@ -6,6 +6,7 @@ from .version import __version__
|
|||
|
||||
class AfterEffects(BaseServerAddon):
|
||||
name = "aftereffects"
|
||||
title = "AfterEffects"
|
||||
version = __version__
|
||||
|
||||
settings_model = AfterEffectsSettings
|
||||
|
|
|
|||
|
|
@ -5,8 +5,10 @@ from ayon_server.settings import BaseSettingsModel
|
|||
|
||||
class CreateRenderPlugin(BaseSettingsModel):
|
||||
mark_for_review: bool = Field(True, title="Review")
|
||||
defaults: list[str] = Field(default_factory=list,
|
||||
title="Default Variants")
|
||||
defaults: list[str] = Field(
|
||||
default_factory=list,
|
||||
title="Default Variants"
|
||||
)
|
||||
|
||||
|
||||
class AfterEffectsCreatorPlugins(BaseSettingsModel):
|
||||
|
|
|
|||
|
|
@ -3,8 +3,12 @@ from ayon_server.settings import BaseSettingsModel
|
|||
|
||||
from .imageio import AfterEffectsImageIOModel
|
||||
from .creator_plugins import AfterEffectsCreatorPlugins
|
||||
from .publish_plugins import AfterEffectsPublishPlugins
|
||||
from .publish_plugins import (
|
||||
AfterEffectsPublishPlugins,
|
||||
AE_PUBLISH_PLUGINS_DEFAULTS,
|
||||
)
|
||||
from .workfile_builder import WorkfileBuilderPlugin
|
||||
from .templated_workfile_build import TemplatedWorkfileBuildModel
|
||||
|
||||
|
||||
class AfterEffectsSettings(BaseSettingsModel):
|
||||
|
|
@ -18,16 +22,18 @@ class AfterEffectsSettings(BaseSettingsModel):
|
|||
default_factory=AfterEffectsCreatorPlugins,
|
||||
title="Creator plugins"
|
||||
)
|
||||
|
||||
publish: AfterEffectsPublishPlugins = Field(
|
||||
default_factory=AfterEffectsPublishPlugins,
|
||||
title="Publish plugins"
|
||||
)
|
||||
|
||||
workfile_builder: WorkfileBuilderPlugin = Field(
|
||||
default_factory=WorkfileBuilderPlugin,
|
||||
title="Workfile Builder"
|
||||
)
|
||||
templated_workfile_build: TemplatedWorkfileBuildModel = Field(
|
||||
default_factory=TemplatedWorkfileBuildModel,
|
||||
title="Templated Workfile Build Settings"
|
||||
)
|
||||
|
||||
|
||||
DEFAULT_AFTEREFFECTS_SETTING = {
|
||||
|
|
@ -39,24 +45,12 @@ DEFAULT_AFTEREFFECTS_SETTING = {
|
|||
]
|
||||
}
|
||||
},
|
||||
"publish": {
|
||||
"CollectReview": {
|
||||
"enabled": True
|
||||
},
|
||||
"ValidateSceneSettings": {
|
||||
"enabled": True,
|
||||
"optional": True,
|
||||
"active": True,
|
||||
"skip_resolution_check": [
|
||||
".*"
|
||||
],
|
||||
"skip_timelines_check": [
|
||||
".*"
|
||||
]
|
||||
}
|
||||
},
|
||||
"publish": AE_PUBLISH_PLUGINS_DEFAULTS,
|
||||
"workfile_builder": {
|
||||
"create_first_version": False,
|
||||
"custom_templates": []
|
||||
}
|
||||
},
|
||||
"templated_workfile_build": {
|
||||
"profiles": []
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,30 +7,62 @@ class CollectReviewPluginModel(BaseSettingsModel):
|
|||
enabled: bool = Field(True, title="Enabled")
|
||||
|
||||
|
||||
class ValidateSceneSettingsPlugin(BaseSettingsModel):
|
||||
"""Validate naming of products and layers""" #
|
||||
_isGroup = True
|
||||
enabled: bool = True
|
||||
class ValidateSceneSettingsModel(BaseSettingsModel):
|
||||
"""Validate naming of products and layers"""
|
||||
|
||||
# _isGroup = True
|
||||
enabled: bool = Field(True, title="Enabled")
|
||||
optional: bool = Field(False, title="Optional")
|
||||
active: bool = Field(True, title="Active")
|
||||
|
||||
skip_resolution_check: list[str] = Field(
|
||||
default_factory=list,
|
||||
title="Skip Resolution Check for Tasks"
|
||||
title="Skip Resolution Check for Tasks",
|
||||
)
|
||||
|
||||
skip_timelines_check: list[str] = Field(
|
||||
default_factory=list,
|
||||
title="Skip Timeline Check for Tasks"
|
||||
title="Skip Timeline Check for Tasks",
|
||||
)
|
||||
|
||||
|
||||
class ValidateContainersModel(BaseSettingsModel):
|
||||
enabled: bool = Field(True, title="Enabled")
|
||||
optional: bool = Field(True, title="Optional")
|
||||
active: bool = Field(True, title="Active")
|
||||
|
||||
|
||||
class AfterEffectsPublishPlugins(BaseSettingsModel):
|
||||
CollectReview: CollectReviewPluginModel = Field(
|
||||
default_facotory=CollectReviewPluginModel,
|
||||
title="Collect Review"
|
||||
default_factory=CollectReviewPluginModel,
|
||||
title="Collect Review",
|
||||
)
|
||||
ValidateSceneSettings: ValidateSceneSettingsPlugin = Field(
|
||||
ValidateSceneSettings: ValidateSceneSettingsModel = Field(
|
||||
default_factory=ValidateSceneSettingsModel,
|
||||
title="Validate Scene Settings",
|
||||
default_factory=ValidateSceneSettingsPlugin,
|
||||
)
|
||||
ValidateContainers: ValidateContainersModel = Field(
|
||||
default_factory=ValidateContainersModel,
|
||||
title="Validate Containers",
|
||||
)
|
||||
|
||||
|
||||
AE_PUBLISH_PLUGINS_DEFAULTS = {
|
||||
"CollectReview": {
|
||||
"enabled": True
|
||||
},
|
||||
"ValidateSceneSettings": {
|
||||
"enabled": True,
|
||||
"optional": True,
|
||||
"active": True,
|
||||
"skip_resolution_check": [
|
||||
".*"
|
||||
],
|
||||
"skip_timelines_check": [
|
||||
".*"
|
||||
]
|
||||
},
|
||||
"ValidateContainers": {
|
||||
"enabled": True,
|
||||
"optional": True,
|
||||
"active": True,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,33 @@
|
|||
from pydantic import Field
|
||||
from ayon_server.settings import (
|
||||
BaseSettingsModel,
|
||||
task_types_enum,
|
||||
)
|
||||
|
||||
|
||||
class TemplatedWorkfileProfileModel(BaseSettingsModel):
|
||||
task_types: list[str] = Field(
|
||||
default_factory=list,
|
||||
title="Task types",
|
||||
enum_resolver=task_types_enum
|
||||
)
|
||||
task_names: list[str] = Field(
|
||||
default_factory=list,
|
||||
title="Task names"
|
||||
)
|
||||
path: str = Field(
|
||||
title="Path to template"
|
||||
)
|
||||
keep_placeholder: bool = Field(
|
||||
False,
|
||||
title="Keep placeholders")
|
||||
create_first_version: bool = Field(
|
||||
True,
|
||||
title="Create first version"
|
||||
)
|
||||
|
||||
|
||||
class TemplatedWorkfileBuildModel(BaseSettingsModel):
|
||||
profiles: list[TemplatedWorkfileProfileModel] = Field(
|
||||
default_factory=list
|
||||
)
|
||||
|
|
@ -21,5 +21,5 @@ class WorkfileBuilderPlugin(BaseSettingsModel):
|
|||
)
|
||||
|
||||
custom_templates: list[CustomBuilderTemplate] = Field(
|
||||
default_factory=CustomBuilderTemplate
|
||||
default_factory=list
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
"""Package declaring addon version."""
|
||||
__version__ = "0.1.0"
|
||||
__version__ = "0.1.1"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue