mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
fusion is handling AYON settings in code
This commit is contained in:
parent
00e2bebd12
commit
5c0d866c1e
2 changed files with 10 additions and 34 deletions
|
|
@ -148,7 +148,16 @@ class GenericCreateSaver(Creator):
|
|||
})
|
||||
|
||||
# build file path to render
|
||||
filepath = self.temp_rendering_path_template.format(**formatting_data)
|
||||
# TODO make sure the keys are available in 'formatting_data'
|
||||
temp_rendering_path_template = (
|
||||
self.temp_rendering_path_template
|
||||
.replace("{product[name]}", "{subset}")
|
||||
.replace("{product[type]}", "{family}")
|
||||
.replace("{folder[name]}", "{asset}")
|
||||
.replace("{task[name]}", "{task}")
|
||||
)
|
||||
|
||||
filepath = temp_rendering_path_template.format(**formatting_data)
|
||||
|
||||
comp = get_current_comp()
|
||||
tool["Clip"] = comp.ReverseMapPath(os.path.normpath(filepath))
|
||||
|
|
|
|||
|
|
@ -324,39 +324,6 @@ def _convert_fusion_project_settings(ayon_settings, output):
|
|||
ayon_fusion = ayon_settings["fusion"]
|
||||
_convert_host_imageio(ayon_fusion)
|
||||
|
||||
ayon_imageio_fusion = ayon_fusion["imageio"]
|
||||
|
||||
if "ocioSettings" in ayon_imageio_fusion:
|
||||
ayon_ocio_setting = ayon_imageio_fusion.pop("ocioSettings")
|
||||
paths = ayon_ocio_setting.pop("ocioPathModel")
|
||||
for key, value in tuple(paths.items()):
|
||||
new_value = []
|
||||
if value:
|
||||
new_value.append(value)
|
||||
paths[key] = new_value
|
||||
|
||||
ayon_ocio_setting["configFilePath"] = paths
|
||||
ayon_imageio_fusion["ocio"] = ayon_ocio_setting
|
||||
elif "ocio" in ayon_imageio_fusion:
|
||||
paths = ayon_imageio_fusion["ocio"].pop("configFilePath")
|
||||
for key, value in tuple(paths.items()):
|
||||
new_value = []
|
||||
if value:
|
||||
new_value.append(value)
|
||||
paths[key] = new_value
|
||||
ayon_imageio_fusion["ocio"]["configFilePath"] = paths
|
||||
|
||||
_convert_host_imageio(ayon_imageio_fusion)
|
||||
|
||||
ayon_create_saver = ayon_fusion["create"]["CreateSaver"]
|
||||
ayon_create_saver["temp_rendering_path_template"] = (
|
||||
ayon_create_saver["temp_rendering_path_template"]
|
||||
.replace("{product[name]}", "{subset}")
|
||||
.replace("{product[type]}", "{family}")
|
||||
.replace("{folder[name]}", "{asset}")
|
||||
.replace("{task[name]}", "{task}")
|
||||
)
|
||||
|
||||
output["fusion"] = ayon_fusion
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue