eliemichel / LilySurfaceScraper

Import shaders end environments in Blender from a single URL
Other
598 stars 59 forks source link

Importing world is broken when custom OCIO is set. #233

Open gad-ass opened 1 year ago

gad-ass commented 1 year ago

Start with a clear and concise description of what the bug is, then provide:

https://github.com/eliemichel/LilySurfaceScraper/assets/32915902/6f7f9e2a-70a1-418e-93b5-77f891e685e3

I have set up custom path for OCIO in Windows Environment and I think it's colliding with addon. :)

gad-ass commented 1 year ago

Blender Log:

Python: Traceback (most recent call last): File "C:\Users*\AppData\Roaming\Blender Foundation\Blender\3.5\scripts\addons\LilySurfaceScraper\frontend.py", line 382, in execute world = data.createWorld() File "C:\Users*\AppData\Roaming\Blender Foundation\Blender\3.5\scripts\addons\LilySurfaceScraper\CyclesWorldData.py", line 54, in createWorld texture_node.image.colorspace_settings.name = color_space["name"] TypeError: bpy_struct: item.attr = val: enum "Linear" not found in ('ACES - ACEScc', 'ACES - ACEScct', 'AgX Log (Kraken)', 'AgX Log (SB2383)', 'ARRI LogC AWG', 'ARRI LogC4', 'BMDFilm WideGamut Gen5', 'Canon - CLog2 CGamut', 'Canon - CLog3 CGamut', 'DaVinci Intermediate WideGamut', 'Filmic Log', 'Linear - E-Gamut', 'Linear ACES - AP0', 'Linear ACES - AP1', 'Linear Rec2020', 'Linear Rec709/sRGB', 'Non-Color', 'Panasonic - VLog VGamut', 'RED - Log3G10 RWG', 'Sony - SLog3 SGamut3', 'Sony - SLog3 SGamut3Cine', 'sRGB', 'T-Log - E-Gamut', 'XYZ')

I think issue is on my side as far as I understand this log - have to somehow add 'Linear' profile to my config.