mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
Update client/ayon_core/pipeline/colorspace.py
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
This commit is contained in:
parent
f9e0b05bf2
commit
d51a04c8ac
1 changed files with 5 additions and 4 deletions
|
|
@ -700,18 +700,19 @@ def get_ocio_config_views(config_path):
|
|||
|
||||
|
||||
def _get_config_path_from_profile_data(
|
||||
data, data_type, template_data) -> dict:
|
||||
profile, profile_type, template_data
|
||||
):
|
||||
"""Get config path from profile data.
|
||||
|
||||
Args:
|
||||
data (dict[str, Any]): Profile data.
|
||||
data_type (str): Profile type.
|
||||
profile(dict[str, Any]): Profile data.
|
||||
profile_type (str): Profile type.
|
||||
template_data (dict[str, Any]): Template data.
|
||||
|
||||
Returns:
|
||||
dict[str, str]: Config data with path and template.
|
||||
"""
|
||||
template = data[data_type]
|
||||
template = profile[profile_type]
|
||||
result = StringTemplate.format_strict_template(
|
||||
template, template_data
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue