LilySurfaceScraper icon indicating copy to clipboard operation
LilySurfaceScraper copied to clipboard

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

Open rivergold opened this issue 11 months ago • 4 comments

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'
  • Version of LilySurfaceScrapper: master
  • Version of Blender: 4.0.2
  • Operating System: Linux

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

rivergold avatar Mar 13 '24 06:03 rivergold

I find this error is causes by

section   = "\\NodeTree\\"

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

rivergold avatar Mar 13 '24 06:03 rivergold

Same issue here.

Blender version: 4.1 OS: MacOS

Toby-Cheung avatar May 21 '24 19:05 Toby-Cheung

Same here Blender 4.1 Linux

lmurta avatar Jul 15 '24 10:07 lmurta

Same here Blender 4.2 MacOS

valentindiehl avatar Aug 11 '24 15:08 valentindiehl