You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the existing issues and added correct labels.
Description
This bug is exactly the same on both loaders (because load_image_shader is based on load_image_compositor ).
Even when a representation has valid colorspace, those loaders don't apply it to the Blender node.
Steps To Reproduce:
From Blender, open Ayon-->Load
Use it to load a product that has colorspace.
Look at the Blender node : it has ACEScc colorspace, even if the representation is supposed to use another one.
Additional context:
Here the 1st line's condition is never met, so the 2nd line is never executed :
if representation.get("colorspaceData"):
colorspace: str = representation["colorspaceData"]["colorspace"]
The following fix works all right in my tests (in both loaders) :
if representation["data"].get("colorspaceData"):
colorspace: str = representation["data"]["colorspaceData"]["colorspace"]
Is there an existing issue for this?
Description
This bug is exactly the same on both loaders (because
load_image_shader
is based onload_image_compositor
).Even when a representation has valid colorspace, those loaders don't apply it to the Blender node.
Steps To Reproduce:
From Blender, open Ayon-->Load
Use it to load a product that has colorspace.
Look at the Blender node : it has ACEScc colorspace, even if the representation is supposed to use another one.
Additional context:
Here the 1st line's condition is never met, so the 2nd line is never executed :
The following fix works all right in my tests (in both loaders) :
ayon-blender/client/ayon_blender/plugins/load/load_image_compositor.py
Lines 138 to 139 in b9ea07e
ayon-blender/client/ayon_blender/plugins/load/load_image_shader.py
Lines 136 to 137 in b9ea07e
Relevant log output:
The text was updated successfully, but these errors were encountered: