eliemichel / LilySurfaceScraper

Import shaders end environments in Blender from a single URL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Import World Creates Traceback Error on Windows

lexhag opened this issue · comments

When importing a surface with the Texture tab everything works faultlessly.

When I try and import an HDRi with the World Tab I receive the following error:

Traceback (most recent call last):
File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\LilySurfaceScraper\frontend.py", line 364, in execute
world = data.createWorld()
File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\3.2\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', 'ACES... and then lists all of the ACES transforms.

I've tried various versions of Blender and Lilyscraper. The current error was created with:

  • LilySurfaceScraper-v1.8.0-rc2
  • Blender 3.2
  • Windows 10 Pro

Could you show the full list of ACES transforms? Do you use a custom OpenColorIO configuration?

I'm using aces 1.2 with a config from colour-science/OpenColorIO-Configs

Here is the full error:

Python: Traceback (most recent call last):
File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\LilySurfaceScraper\frontend.py", line 364, in execute
world = data.createWorld()
File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\3.0\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', 'ACES - ACES2065-1', 'ACES - ACEScc', 'ACES - ACEScct', 'ACES - ACEScg', 'ACES - ACESproxy', 'acescc', 'acescc_ap1', 'acescct', 'acescct_ap1', 'acescg', 'acesproxy', 'acesproxy_ap1', 'adx10', 'adx16', 'canonlog2_cgamutday', 'canonlog2_cgamuttung', 'canonlog2_rec2020day', 'canonlog2_rec2020tung', 'canonlog3_cgamutday', 'canonlog3_cgamuttung', 'canonlog3_rec2020day', 'canonlog3_rec2020tung', 'canonlog_cgamutday', 'canonlog_cgamuttung', 'canonlog_dcip3day', 'canonlog_dcip3tung', 'canonlog_rec2020day', 'canonlog_rec2020tung', 'canonlog_rec709day', 'canonlog_rec709tung', 'crv_canonlog', 'crv_canonlog2', 'crv_canonlog3', 'crv_dolbypq1000nitsshaper', 'crv_dolbypq108nitsshaper', 'crv_dolbypq2000nitsshaper', 'crv_dolbypq4000nitsshaper', 'crv_dolbypq48nitsshaper', 'crv_dolbypq_10000', 'crv_lmtshaper', 'crv_log21000nitsshaper', 'crv_log2108nitsshaper', 'crv_log22000nitsshaper', 'crv_log24000nitsshaper', 'crv_log248nitsshaper', 'crv_logc3ei800', 'crv_protuneflat', 'crv_rec1886', 'crv_rec2020', 'crv_rec709', 'crv_rl3g10', 'crv_rlf', 'crv_slog1', 'crv_slog2', 'crv_slog3', 'crv_srgb', 'crv_vlog', 'dolbypq1000nitsshaper_ap1', 'dolbypq108nitsshaper_ap1', 'dolbypq2000nitsshaper_ap1', 'dolbypq4000nitsshaper_ap1', 'dolbypq48nitsshaper_ap1', 'g18_rec709', 'g22_rec709', 'Input - ADX - ADX10', 'Input - ADX - ADX16', 'Input - ARRI - Curve - V3 LogC (EI800)', 'Input - ARRI - Linear - ALEXA Wide Gamut', 'Input - ARRI - V3 LogC (EI1000) - Wide Gamut', 'Input - ARRI - V3 LogC (EI1280) - Wide Gamut', 'Input - ARRI - V3 LogC (EI160) - Wide Gamut', 'Input - ARRI - V3 LogC (EI1600) - Wide Gamut', 'Input - ARRI - V3 LogC (EI200) - Wide Gamut', 'Input - ARRI - V3 LogC (EI2000) - Wide Gamut', 'Input - ARRI - V3 LogC (EI250) - Wide Gamut', 'Input - ARRI - V3 LogC (EI2560) - Wide Gamut', 'Input - ARRI - V3 LogC (EI320) - Wide Gamut', 'Input - ARRI - V3 LogC (EI3200) - Wide Gamut', 'Input - ARRI - V3 LogC (EI400) - Wide Gamut', 'Input - ARRI - V3 LogC (EI500) - Wide Gamut', 'Input - ARRI - V3 LogC (EI640) - Wide Gamut', 'Input - ARRI - V3 LogC (EI800) - Wide Gamut', 'Input - Canon - Canon-Log - Cinema Gamut Daylight', 'Input - Canon - Canon-Log - Cinema Gamut Tungsten', 'Input - Canon - Canon-Log - DCI-P3 Daylight', 'Input - Canon - Canon-Log - DCI-P3 Tungsten', 'Input - Canon - Canon-Log - Rec. 2020 Daylight', 'Input - Canon - Canon-Log - Rec. 2020 Tungsten', 'Input - Canon - Canon-Log - Rec. 709 Daylight', 'Input - Canon - Canon-Log - Rec. 709 Tungsten', 'Input - Canon - Canon-Log2 - Cinema Gamut Daylight', 'Input - Canon - Canon-Log2 - Cinema Gamut Tungsten', 'Input - Canon - Canon-Log2 - Rec. 2020 Daylight', 'Input - Canon - Canon-Log2 - Rec. 2020 Tungsten', 'Input - Canon - Canon-Log3 - Cinema Gamut Daylight', 'Input - Canon - Canon-Log3 - Cinema Gamut Tungsten', 'Input - Canon - Canon-Log3 - Rec. 2020 Daylight', 'Input - Canon - Canon-Log3 - Rec. 2020 Tungsten', 'Input - Canon - Curve - Canon-Log', 'Input - Canon - Curve - Canon-Log2', 'Input - Canon - Curve - Canon-Log3', 'Input - Canon - Linear - Canon Cinema Gamut Daylight', 'Input - Canon - Linear - Canon Cinema Gamut Tungsten', 'Input - Canon - Linear - Canon DCI-P3 Daylight', 'Input - Canon - Linear - Canon DCI-P3 Tungsten', 'Input - Canon - Linear - Canon Rec. 2020 Daylight', 'Input - Canon - Linear - Canon Rec. 2020 Tungsten', 'Input - Canon - Linear - Canon Rec. 709 Daylight', 'Input - Canon - Linear - Canon Rec. 709 Tungsten', 'Input - Generic - sRGB - Texture', 'Input - GoPro - Curve - Protune Flat', 'Input - GoPro - Linear - Protune Native - Experimental', 'Input - GoPro - Protune Flat - Protune Native - Experimental', 'Input - Panasonic - Curve - V-Log', 'Input - Panasonic - Linear - V-Gamut', 'Input - Panasonic - V-Log - V-Gamut', 'Input - RED - Curve - REDLog3G10', 'Input - RED - Curve - REDlogFilm', 'Input - RED - Linear - DRAGONcolor', 'Input - RED - Linear - DRAGONcolor2', 'Input - RED - Linear - REDcolor', 'Input - RED - Linear - REDcolor2', 'Input - RED - Linear - REDcolor3', 'Input - RED - Linear - REDcolor4', 'Input - RED - Linear - REDWideGamutRGB', 'Input - RED - REDLog3G10 - REDWideGamutRGB', 'Input - RED - REDlogFilm - DRAGONcolor', 'Input - RED - REDlogFilm - DRAGONcolor2', 'Input - RED - REDlogFilm - REDcolor', 'Input - RED - REDlogFilm - REDcolor2', 'Input - RED - REDlogFilm - REDcolor3', 'Input - RED - REDlogFilm - REDcolor4', 'Input - Sony - Curve - S-Log1', 'Input - Sony - Curve - S-Log2', 'Input - Sony - Curve - S-Log3', 'Input - Sony - Linear - S-Gamut', 'Input - Sony - Linear - S-Gamut Daylight', 'Input - Sony - Linear - S-Gamut Tungsten', 'Input - Sony - Linear - S-Gamut3', 'Input - Sony - Linear - S-Gamut3.Cine', 'Input - Sony - Linear - Venice S-Gamut3', 'Input - Sony - Linear - Venice S-Gamut3.Cine', 'Input - Sony - S-Log1 - S-Gamut', 'Input - Sony - S-Log2 - S-Gamut', 'Input - Sony - S-Log2 - S-Gamut Daylight', 'Input - Sony - S-Log2 - S-Gamut Tungsten', 'Input - Sony - S-Log3 - S-Gamut3', 'Input - Sony - S-Log3 - S-Gamut3.Cine', 'Input - Sony - S-Log3 - Venice S-Gamut3', 'Input - Sony - S-Log3 - Venice S-Gamut3.Cine', 'lin_adobergb', 'lin_adobewidegamutrgb', 'lin_alexawide', 'lin_ap0', 'lin_ap1', 'lin_canoncgamutday', 'lin_canoncgamuttung', 'lin_canondcip3day', 'lin_canondcip3tung', 'lin_canonrec2020day', 'lin_canonrec2020tung', 'lin_canonrec709day', 'lin_canonrec709tung', 'lin_dgn', 'lin_dgn2', 'lin_p3d60', 'lin_p3d65', 'lin_p3dci', 'lin_prophoto', 'lin_protunegamutexp', 'lin_rc', 'lin_rc2', 'lin_rc3', 'lin_rc4', 'lin_rec2020', 'lin_rec709', 'lin_rimm', 'lin_rwg', 'lin_sgamut', 'lin_sgamut3', 'lin_sgamut3cine', 'lin_sgamutday', 'lin_sgamuttung', 'lin_srgb', 'lin_venice_sgamut3', 'lin_venice_sgamut3cine', 'lin_vgamut', 'lin_xyz_d60', 'log21000nitsshaper_ap1', 'log2108nitsshaper_ap1', 'log22000nitsshaper_ap1', 'log24000nitsshaper_ap1', 'log248nitsshaper_ap1', 'logc3ei1000_alexawide', 'logc3ei1280_alexawide', 'logc3ei1600_alexawide', 'logc3ei160_alexawide', 'logc3ei2000_alexawide', 'logc3ei200_alexawide', 'logc3ei250_alexawide', 'logc3ei2560_alexawide', 'logc3ei3200_alexawide', 'logc3ei320_alexawide', 'logc3ei400_alexawide', 'logc3ei500_alexawide', 'logc3ei640_alexawide', 'logc3ei800_alexawide', 'look_aces10to01emulation', 'look_aces10to02emulation', 'look_aces10to07emulation', 'look_bluelightartifactfix', 'out_dcdm', 'out_dcdmp3d60limited', 'out_dcdmp3d65limited', 'out_p3d60', 'out_p3d65', 'out_p3d65d60simulation', 'out_p3d65rec709limited', 'out_p3d65st20841000nits', 'out_p3d65st2084108nits', 'out_p3d65st20842000nits', 'out_p3d65st20844000nits', 'out_p3dcid60simulation', 'out_p3dcid65simulation', 'out_rec2020', 'out_rec2020hlg1000nits', 'out_rec2020p3d65limited', 'out_rec2020rec709limited', 'out_rec2020st20841000nits', 'out_rec2020st20842000nits', 'out_rec2020st20844000nits', 'out_rec709', 'out_rec709d60sim', 'out_srgb', 'out_srgbd60sim', 'Output - DCDM', 'Output - DCDM (P3D60 Limited)', 'Output - DCDM (P3D65 Limited)', 'Output - P3-D60', 'Output - P3-D65 ST2084 (1000 nits)', 'Output - P3-D65 ST2084 (2000 nits)', 'Output - P3-D65 ST2084 (4000 nits)', 'Output - P3-DCI (D60 simulation)', 'Output - P3-DCI (D65 simulation)', 'Output - P3D65', 'Output - P3D65 (D60 simulation)', 'Output - P3D65 (Rec.709 Limited)', 'Output - P3D65 ST2084 (108 nits)', 'Output - Rec.2020', 'Output - Rec.2020 (P3D65 Limited)', 'Output - Rec.2020 (Rec.709 Limited)', 'Output - Rec.2020 HLG (1000 nits)', 'Output - Rec.2020 ST2084 (1000 nits)', 'Output - Rec.2020 ST2084 (2000 nits)', 'Output - Rec.2020 ST2084 (4000 nits)', 'Output - Rec.709', 'Output - Rec.709 (D60 sim.)', 'Output - sRGB', 'Output - sRGB (D60 sim.)', 'protuneflat_protunegamutexp', 'raw', 'rec2020_camera', 'rec2020_display', 'rec709_camera', 'rec709_display', 'rl3g10_rwg', 'rlf_dgn', 'rlf_dgn2', 'rlf_rc', 'rlf_rc2', 'rlf_rc3', 'rlf_rc4', 'Role - color_picking', 'Role - color_timing', 'Role - compositing_linear', 'Role - compositing_log', 'Role - data', 'Role - default', 'Role - matte_paint', 'Role - reference', 'Role - rendering', 'Role - scene_linear', 'Role - texture_paint', 'role_color_picking', 'role_color_timing', 'role_compositing_linear', 'role_compositing_log', 'role_data', 'role_default', 'role_matte_paint', 'role_reference', 'role_rendering', 'role_scene_linear', 'role_texture_paint', 'slog1_sgamut', 'slog2_sgamut', 'slog2_sgamutday', 'slog2_sgamuttung', 'slog3_sgamut3', 'slog3_sgamutcine', 'slog3_venice_sgamut3', 'slog3_venice_sgamutcine', 'srgb_texture', 'Utility - Curve - Rec.1886', 'Utility - Curve - Rec.2020', 'Utility - Curve - Rec.709', 'Utility - Curve - sRGB', 'Utility - Dolby PQ 1000 nits Shaper', 'Utility - Dolby PQ 1000 nits Shaper - AP1', 'Utility - Dolby PQ 10000', 'Utility - Dolby PQ 108 nits Shaper', 'Utility - Dolby PQ 108 nits Shaper - AP1', 'Utility - Dolby PQ 2000 nits Shaper', 'Utility - Dolby PQ 2000 nits Shaper - AP1', 'Utility - Dolby PQ 4000 nits Shaper', 'Utility - Dolby PQ 4000 nits Shaper - AP1', 'Utility - Dolby PQ 48 nits Shaper', 'Utility - Dolby PQ 48 nits Shaper - AP1', 'Utility - Gamma 1.8 - Rec.709 - Texture', 'Utility - Gamma 2.2 - Rec.709 - Texture', 'Utility - Linear - Adobe RGB', 'Utility - Linear - Adobe Wide Gamut RGB', 'Utility - Linear - P3-D60', 'Utility - Linear - P3-D65', 'Utility - Linear - P3-DCI', 'Utility - Linear - Rec.2020', 'Utility - Linear - Rec.709', 'Utility - Linear - RIMM ROMM (ProPhoto)', 'Utility - Linear - sRGB', 'Utility - LMT Shaper', 'Utility - Log2 1000 nits Shaper', 'Utility - Log2 1000 nits Shaper - AP1', 'Utility - Log2 108 nits Shaper', 'Utility - Log2 108 nits Shaper - AP1', 'Utility - Log2 2000 nits Shaper', 'Utility - Log2 2000 nits Shaper - AP1', 'Utility - Log2 4000 nits Shaper', 'Utility - Log2 4000 nits Shaper - AP1', 'Utility - Log2 48 nits Shaper', 'Utility - Log2 48 nits Shaper - AP1', 'Utility - Look - ACES 1.0 to 0.1 emulation', 'Utility - Look - ACES 1.0 to 0.2 emulation', 'Utility - Look - ACES 1.0 to 0.7 emulation', 'Utility - Look - Blue Light Artifact Fix', 'Utility - Raw', 'Utility - Rec.2020 - Camera', 'Utility - Rec.2020 - Display', 'Utility - Rec.709 - Camera', 'Utility - Rec.709 - Display', 'Utility - sRGB - Texture', 'Utility - XYZ - D60', 'vlog_vgamut')

location: :-1

Could you try the current master? (Compress blender/LilySurfaceScraper into a zip that can be loaded as an addon).

That worked! Thank you @eliemichel.