suggestions from PR

This commit is contained in:
Jakub Jezek 2023-01-04 15:35:19 +01:00
parent 14b52ac625
commit ed89581dfb
No known key found for this signature in database
GPG key ID: 730D7C02726179A7
3 changed files with 4 additions and 2 deletions

View file

@ -13,7 +13,7 @@ from .lib import (
get_instance_staging_dir,
)
from ..colorspace import (
from openpype.pipeline.colorspace import (
get_imageio_colorspace_from_filepath,
get_imageio_config,
get_imageio_file_rules

View file

@ -533,6 +533,8 @@ class IntegrateAsset(pyblish.api.InstancePlugin):
if repre.get("colorspaceData"):
colorspace = repre["colorspaceData"]["colorspace"]
# replace spaces with underscores
# pipeline.colorspace.parse_colorspace_from_filepath
# is checking it with underscores too
colorspace = colorspace.replace(" ", "_")
template_data["colorspace"] = colorspace

View file

@ -86,7 +86,7 @@ def get_views_data(config_path):
config = ocio.Config().CreateFromFile(str(config_path))
return {
"{}/{}".format(d, v): {"display": d, "view": v}
f"{d}/{v}": {"display": d, "view": v}
for d in config.getDisplays()
for v in config.getViews(d)
}