eliemichel / LilySurfaceScraper

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

KeyError: 'bpy_prop_collection[key]: key "GroundHdri" not found' #245

Open rivergold opened 8 months ago

rivergold commented 8 months ago

When run "Import from clipboard",occur error

Traceback (most recent call last):
  File "/home/xxx/.config/blender/4.0/scripts/addons/LilySurfaceScraper-master/blender/LilySurfaceScraper/frontend.py", line 382, in execute
    world = data.createWorld()
  File "/home/xxx/.config/blender/4.0/scripts/addons/LilySurfaceScraper-master/blender/LilySurfaceScraper/CyclesWorldData.py", line 70, in createWorld
    ground_hdri_node.node_tree = getGroundHdriNodeGroup()
  File "/home/xxx/.config/blender/4.0/scripts/addons/LilySurfaceScraper-master/blender/LilySurfaceScraper/CyclesWorldData.py", line 31, in getGroundHdriNodeGroup
    return bpy.data.node_groups["GroundHdri"]
KeyError: 'bpy_prop_collection[key]: key "GroundHdri" not found'

Did I do something wrong somewhere? How can i solve the problem?

rivergold commented 8 months ago

I find this error is causes by

section   = "\\NodeTree\\"

This is for Windows to set the path, but is not suit for Linux.

Toby-Cheung commented 6 months ago

Same issue here.

Blender version: 4.1 OS: MacOS

lmurta commented 4 months ago

Same here Blender 4.1 Linux

valentindiehl commented 3 months ago

Same here Blender 4.2 MacOS