ayon-nuke: removing extract thumbnail from settings

This commit is contained in:
Jakub Jezek 2023-11-21 17:38:43 +01:00
parent 2f78943791
commit 619b4ccafc
No known key found for this signature in database
GPG key ID: 730D7C02726179A7
2 changed files with 1 additions and 105 deletions

View file

@ -51,17 +51,6 @@ class NodeModel(BaseSettingsModel):
return value
class ThumbnailRepositionNodeModel(BaseSettingsModel):
node_class: str = Field(title="Node class")
knobs: list[KnobModel] = Field(title="Knobs", default_factory=list)
@validator("knobs")
def ensure_unique_names(cls, value):
"""Ensure name fields within the lists have unique names."""
ensure_unique_names(value)
return value
class CollectInstanceDataModel(BaseSettingsModel):
sync_workfile_version_on_product_types: list[str] = Field(
default_factory=list,
@ -89,22 +78,6 @@ class ValidateKnobsModel(BaseSettingsModel):
return validate_json_dict(value)
class ExtractThumbnailModel(BaseSettingsModel):
enabled: bool = Field(title="Enabled")
use_rendered: bool = Field(title="Use rendered images")
bake_viewer_process: bool = Field(title="Bake view process")
bake_viewer_input_process: bool = Field(title="Bake viewer input process")
nodes: list[NodeModel] = Field(
default_factory=list,
title="Nodes (deprecated)"
)
reposition_nodes: list[ThumbnailRepositionNodeModel] = Field(
title="Reposition nodes",
default_factory=list
)
class ExtractReviewDataModel(BaseSettingsModel):
enabled: bool = Field(title="Enabled")
@ -267,11 +240,6 @@ class PublishPuginsModel(BaseSettingsModel):
title="Validate workfile attributes",
default_factory=OptionalPluginModel
)
ExtractThumbnail: ExtractThumbnailModel = Field(
title="Extract Thumbnail",
default_factory=ExtractThumbnailModel,
section="Extractors"
)
ExtractReviewData: ExtractReviewDataModel = Field(
title="Extract Review Data",
default_factory=ExtractReviewDataModel
@ -350,78 +318,6 @@ DEFAULT_PUBLISH_PLUGIN_SETTINGS = {
"optional": True,
"active": True
},
"ExtractThumbnail": {
"enabled": True,
"use_rendered": True,
"bake_viewer_process": True,
"bake_viewer_input_process": True,
"nodes": [
{
"name": "Reformat01",
"nodeclass": "Reformat",
"dependency": "",
"knobs": [
{
"type": "text",
"name": "type",
"text": "to format"
},
{
"type": "text",
"name": "format",
"text": "HD_1080"
},
{
"type": "text",
"name": "filter",
"text": "Lanczos6"
},
{
"type": "boolean",
"name": "black_outside",
"boolean": True
},
{
"type": "boolean",
"name": "pbb",
"boolean": False
}
]
}
],
"reposition_nodes": [
{
"node_class": "Reformat",
"knobs": [
{
"type": "text",
"name": "type",
"text": "to format"
},
{
"type": "text",
"name": "format",
"text": "HD_1080"
},
{
"type": "text",
"name": "filter",
"text": "Lanczos6"
},
{
"type": "boolean",
"name": "black_outside",
"boolean": True
},
{
"type": "boolean",
"name": "pbb",
"boolean": False
}
]
}
]
},
"ExtractReviewData": {
"enabled": False
},

View file

@ -1 +1 @@
__version__ = "0.1.5"
__version__ = "0.1.6"