Fusion: Project/User option for output format (create_saver) (#6045)

* feat: schema for saver output extensions

* feat: saver output ext option added

* fix: typo on dict get

* feat: added tiff

* fix: typo on fetching default attr

* Transfered new Settings to Ayon

---------

Co-authored-by: Jack P <jack.p@random42.com>
Co-authored-by: kalisp <petr.kalis@gmail.com>
This commit is contained in:
Sponge96 2023-12-14 11:48:16 +00:00 committed by GitHub
parent d20fefe761
commit 9711900309
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 75 additions and 56 deletions

View file

@ -25,6 +25,16 @@ def _create_saver_instance_attributes_enum():
]
def _image_format_enum():
return [
{"value": "exr", "label": "exr"},
{"value": "tga", "label": "tga"},
{"value": "png", "label": "png"},
{"value": "tif", "label": "tif"},
{"value": "jpg", "label": "jpg"},
]
class CreateSaverPluginModel(BaseSettingsModel):
_isGroup = True
temp_rendering_path_template: str = Field(
@ -39,6 +49,10 @@ class CreateSaverPluginModel(BaseSettingsModel):
enum_resolver=_create_saver_instance_attributes_enum,
title="Instance attributes"
)
image_format: str = Field(
enum_resolver=_image_format_enum,
title="Output Image Format"
)
class CreatPluginsModel(BaseSettingsModel):
@ -89,7 +103,8 @@ DEFAULT_VALUES = {
"instance_attributes": [
"reviewable",
"farm_rendering"
]
],
"image_format": "exr"
}
}
}

View file

@ -1 +1 @@
__version__ = "0.1.0"
__version__ = "0.1.1"