mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Merge branch 'develop' into enhancement/OP-7940_render_workfile_attributes
This commit is contained in:
commit
fa963bfc1f
19 changed files with 238 additions and 144 deletions
|
|
@ -307,9 +307,9 @@
|
|||
]
|
||||
},
|
||||
"arguments": {
|
||||
"windows": [],
|
||||
"windows": ["--nukeassist"],
|
||||
"darwin": [],
|
||||
"linux": []
|
||||
"linux": ["--nukeassist"]
|
||||
},
|
||||
"environment": "{}",
|
||||
"use_python_2": false
|
||||
|
|
@ -329,9 +329,9 @@
|
|||
]
|
||||
},
|
||||
"arguments": {
|
||||
"windows": [],
|
||||
"windows": ["--nukeassist"],
|
||||
"darwin": [],
|
||||
"linux": []
|
||||
"linux": ["--nukeassist"]
|
||||
},
|
||||
"environment": "{}",
|
||||
"use_python_2": false
|
||||
|
|
@ -351,9 +351,9 @@
|
|||
]
|
||||
},
|
||||
"arguments": {
|
||||
"windows": [],
|
||||
"windows": ["--nukeassist"],
|
||||
"darwin": [],
|
||||
"linux": []
|
||||
"linux": ["--nukeassist"]
|
||||
},
|
||||
"environment": "{}",
|
||||
"use_python_2": false
|
||||
|
|
@ -382,9 +382,9 @@
|
|||
]
|
||||
},
|
||||
"arguments": {
|
||||
"windows": [],
|
||||
"windows": ["--nukex"],
|
||||
"darwin": [],
|
||||
"linux": []
|
||||
"linux": ["--nukex"]
|
||||
},
|
||||
"environment": "{}",
|
||||
"use_python_2": false
|
||||
|
|
@ -404,9 +404,9 @@
|
|||
]
|
||||
},
|
||||
"arguments": {
|
||||
"windows": [],
|
||||
"windows": ["--nukex"],
|
||||
"darwin": [],
|
||||
"linux": []
|
||||
"linux": ["--nukex"]
|
||||
},
|
||||
"environment": "{}",
|
||||
"use_python_2": false
|
||||
|
|
@ -426,9 +426,9 @@
|
|||
]
|
||||
},
|
||||
"arguments": {
|
||||
"windows": [],
|
||||
"windows": ["--nukex"],
|
||||
"darwin": [],
|
||||
"linux": []
|
||||
"linux": ["--nukex"]
|
||||
},
|
||||
"environment": "{}",
|
||||
"use_python_2": false
|
||||
|
|
@ -457,9 +457,9 @@
|
|||
]
|
||||
},
|
||||
"arguments": {
|
||||
"windows": [],
|
||||
"windows": ["--studio"],
|
||||
"darwin": [],
|
||||
"linux": []
|
||||
"linux": ["--studio"]
|
||||
},
|
||||
"environment": "{}",
|
||||
"use_python_2": false
|
||||
|
|
@ -479,9 +479,9 @@
|
|||
]
|
||||
},
|
||||
"arguments": {
|
||||
"windows": [],
|
||||
"windows": ["--studio"],
|
||||
"darwin": [],
|
||||
"linux": []
|
||||
"linux": ["--studio"]
|
||||
},
|
||||
"environment": "{}",
|
||||
"use_python_2": false
|
||||
|
|
@ -501,9 +501,9 @@
|
|||
]
|
||||
},
|
||||
"arguments": {
|
||||
"windows": [],
|
||||
"windows": ["--studio"],
|
||||
"darwin": [],
|
||||
"linux": []
|
||||
"linux": ["--studio"]
|
||||
},
|
||||
"environment": "{}",
|
||||
"use_python_2": false
|
||||
|
|
@ -532,9 +532,9 @@
|
|||
]
|
||||
},
|
||||
"arguments": {
|
||||
"windows": [],
|
||||
"windows": ["--hiero"],
|
||||
"darwin": [],
|
||||
"linux": []
|
||||
"linux": ["--hiero"]
|
||||
},
|
||||
"environment": "{}",
|
||||
"use_python_2": false
|
||||
|
|
@ -554,9 +554,9 @@
|
|||
]
|
||||
},
|
||||
"arguments": {
|
||||
"windows": [],
|
||||
"windows": ["--hiero"],
|
||||
"darwin": [],
|
||||
"linux": []
|
||||
"linux": ["--hiero"]
|
||||
},
|
||||
"environment": "{}",
|
||||
"use_python_2": false
|
||||
|
|
@ -576,9 +576,9 @@
|
|||
]
|
||||
},
|
||||
"arguments": {
|
||||
"windows": [],
|
||||
"windows": ["--hiero"],
|
||||
"darwin": [],
|
||||
"linux": []
|
||||
"linux": ["--hiero"]
|
||||
},
|
||||
"environment": "{}",
|
||||
"use_python_2": false
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
__version__ = "0.1.3"
|
||||
__version__ = "0.1.4"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
from pydantic import Field
|
||||
from ayon_server.settings import BaseSettingsModel
|
||||
from pydantic import Field, validator
|
||||
from ayon_server.settings import (
|
||||
BaseSettingsModel, ensure_unique_names, normalize_name
|
||||
)
|
||||
|
||||
|
||||
class CollectInstanceVersionModel(BaseSettingsModel):
|
||||
|
|
@ -9,6 +11,30 @@ class CollectInstanceVersionModel(BaseSettingsModel):
|
|||
)
|
||||
|
||||
|
||||
class CollectClipEffectsDefModel(BaseSettingsModel):
|
||||
_layout = "expanded"
|
||||
name: str = Field("", title="Name")
|
||||
effect_classes: list[str] = Field(
|
||||
default_factory=list, title="Effect Classes"
|
||||
)
|
||||
|
||||
@validator("name")
|
||||
def validate_name(cls, value):
|
||||
"""Ensure name does not contain weird characters"""
|
||||
return normalize_name(value)
|
||||
|
||||
|
||||
class CollectClipEffectsModel(BaseSettingsModel):
|
||||
effect_categories: list[CollectClipEffectsDefModel] = Field(
|
||||
default_factory=list, title="Effect Categories"
|
||||
)
|
||||
|
||||
@validator("effect_categories")
|
||||
def validate_unique_outputs(cls, value):
|
||||
ensure_unique_names(value)
|
||||
return value
|
||||
|
||||
|
||||
class ExtractReviewCutUpVideoModel(BaseSettingsModel):
|
||||
enabled: bool = Field(
|
||||
True,
|
||||
|
|
@ -25,6 +51,10 @@ class PublishPuginsModel(BaseSettingsModel):
|
|||
default_factory=CollectInstanceVersionModel,
|
||||
title="Collect Instance Version"
|
||||
)
|
||||
CollectClipEffects: CollectClipEffectsModel = Field(
|
||||
default_factory=CollectClipEffectsModel,
|
||||
title="Collect Clip Effects"
|
||||
)
|
||||
"""# TODO: enhance settings with host api:
|
||||
Rename class name and plugin name
|
||||
to match title (it makes more sense)
|
||||
|
|
@ -44,5 +74,8 @@ DEFAULT_PUBLISH_PLUGIN_SETTINGS = {
|
|||
"tags_addition": [
|
||||
"review"
|
||||
]
|
||||
},
|
||||
"CollectClipEffectsModel": {
|
||||
"effect_categories": []
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
__version__ = "0.1.1"
|
||||
__version__ = "0.1.2"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue