mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
Added fill_missing_frames to
settings
This commit is contained in:
parent
f14a00b510
commit
c210f62e19
1 changed files with 18 additions and 2 deletions
|
|
@ -12,6 +12,14 @@ from ayon_server.settings import (
|
||||||
from ayon_server.types import ColorRGBA_uint8
|
from ayon_server.types import ColorRGBA_uint8
|
||||||
|
|
||||||
|
|
||||||
|
def _handle_missing_frames_enum():
|
||||||
|
return [
|
||||||
|
{"value": "closest_existing", "label": "Use closest existing"},
|
||||||
|
{"value": "blank", "label": "Generate blank frame"},
|
||||||
|
{"value": "previous_version", "label": "Use previous version"},
|
||||||
|
{"value": "only_rendered", "label": "Use only rendered"},
|
||||||
|
]
|
||||||
|
|
||||||
class EnabledModel(BaseSettingsModel):
|
class EnabledModel(BaseSettingsModel):
|
||||||
enabled: bool = SettingsField(True)
|
enabled: bool = SettingsField(True)
|
||||||
|
|
||||||
|
|
@ -642,6 +650,12 @@ class ExtractReviewOutputDefModel(BaseSettingsModel):
|
||||||
default_factory=ExtractReviewLetterBox,
|
default_factory=ExtractReviewLetterBox,
|
||||||
title="Letter Box"
|
title="Letter Box"
|
||||||
)
|
)
|
||||||
|
fill_missing_frames:str = SettingsField(
|
||||||
|
title="Handle missing frames",
|
||||||
|
description="How to handle frames that are missing from entity frame "
|
||||||
|
"range.",
|
||||||
|
enum_resolver=_handle_missing_frames_enum
|
||||||
|
)
|
||||||
|
|
||||||
@validator("name")
|
@validator("name")
|
||||||
def validate_name(cls, value):
|
def validate_name(cls, value):
|
||||||
|
|
@ -1261,7 +1275,8 @@ DEFAULT_PUBLISH_VALUES = {
|
||||||
"fill_color": [0, 0, 0, 1.0],
|
"fill_color": [0, 0, 0, 1.0],
|
||||||
"line_thickness": 0,
|
"line_thickness": 0,
|
||||||
"line_color": [255, 0, 0, 1.0]
|
"line_color": [255, 0, 0, 1.0]
|
||||||
}
|
},
|
||||||
|
"fill_missing_frames": "closest_existing"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "h264",
|
"name": "h264",
|
||||||
|
|
@ -1311,7 +1326,8 @@ DEFAULT_PUBLISH_VALUES = {
|
||||||
"fill_color": [0, 0, 0, 1.0],
|
"fill_color": [0, 0, 0, 1.0],
|
||||||
"line_thickness": 0,
|
"line_thickness": 0,
|
||||||
"line_color": [255, 0, 0, 1.0]
|
"line_color": [255, 0, 0, 1.0]
|
||||||
}
|
},
|
||||||
|
"fill_missing_frames": "closest_existing"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue