mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
Merge branch 'enhancement/1524-yn-0156-usd-contribution-workflow-layer-strength-configured-hierarchically' of https://github.com/BigRoy/ayon-core into enhancement/1524-yn-0156-usd-contribution-workflow-layer-strength-configured-hierarchically
This commit is contained in:
commit
8047c70af2
8 changed files with 160 additions and 111 deletions
|
|
@ -505,6 +505,18 @@ class UseDisplayViewModel(BaseSettingsModel):
|
|||
)
|
||||
|
||||
|
||||
class ExtractThumbnailFromSourceModel(BaseSettingsModel):
|
||||
"""Thumbnail extraction from source files using ffmpeg and oiiotool."""
|
||||
enabled: bool = SettingsField(True)
|
||||
|
||||
target_size: ResizeModel = SettingsField(
|
||||
default_factory=ResizeModel, title="Target size"
|
||||
)
|
||||
background_color: ColorRGBA_uint8 = SettingsField(
|
||||
(0, 0, 0, 0.0), title="Background color"
|
||||
)
|
||||
|
||||
|
||||
class ExtractOIIOTranscodeOutputModel(BaseSettingsModel):
|
||||
_layout = "expanded"
|
||||
name: str = SettingsField(
|
||||
|
|
@ -1280,6 +1292,16 @@ class PublishPuginsModel(BaseSettingsModel):
|
|||
default_factory=ExtractThumbnailModel,
|
||||
title="Extract Thumbnail"
|
||||
)
|
||||
ExtractThumbnailFromSource: ExtractThumbnailFromSourceModel = SettingsField( # noqa: E501
|
||||
default_factory=ExtractThumbnailFromSourceModel,
|
||||
title="Extract Thumbnail from source",
|
||||
description=(
|
||||
"Extract thumbnails from explicit file set in "
|
||||
"instance.data['thumbnailSource'] using oiiotool"
|
||||
" or ffmpeg."
|
||||
"Used when artist provided thumbnail source."
|
||||
)
|
||||
)
|
||||
ExtractOIIOTranscode: ExtractOIIOTranscodeModel = SettingsField(
|
||||
default_factory=ExtractOIIOTranscodeModel,
|
||||
title="Extract OIIO Transcode"
|
||||
|
|
@ -1519,6 +1541,16 @@ DEFAULT_PUBLISH_VALUES = {
|
|||
}
|
||||
]
|
||||
},
|
||||
"ExtractThumbnailFromSource": {
|
||||
"enabled": True,
|
||||
"target_size": {
|
||||
"type": "resize",
|
||||
"resize": {
|
||||
"width": 300,
|
||||
"height": 170
|
||||
}
|
||||
},
|
||||
},
|
||||
"ExtractOIIOTranscode": {
|
||||
"enabled": True,
|
||||
"profiles": []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue