Add version check for Hou 20+

This commit is contained in:
Roy Nieterau 2024-03-25 21:44:57 +01:00
parent 4ba0259e5f
commit c7a1ab2a65

View file

@ -166,6 +166,10 @@ class ImageLoader(load.LoaderPlugin):
dict: Parm to value mapping if colorspace data is defined.
"""
# Using OCIO colorspace on COP2 File node is only supported in Hou 20+
major, _, _ = hou.applicationVersion()
if major < 20:
return {}
data = representation.get("data", {}).get("colorspaceData", {})
if not data: