Color spaces available in texture nodes depend on the OpenColorIO configuration of the user. Is there a clean way to list them? So far I’ve been using this terrible hack:
def listAvailableColorSpaces(image):
# Warning: hack ahead
try:
image.colorspace_settings.name = ''
except TypeError as e:
s = str(e)
return eval(s[s.find('('):])