ReshotAI / gaussian-splatting-blender-addon

https://www.lingosub.com
333 stars 35 forks source link

Error when importing ply #2

Closed joebain closed 9 months ago

joebain commented 9 months ago

Hi, first I want to say thanks for publishing this addon, it looks super useful. I'm trying to import a ply from the polycam gaussian splatting app however I get an error when I do. I'm using blender 3.6.4 on Mac OS.

bpy.context.space_data.system_bookmarks_active = 3
Python: Traceback (most recent call last):
  File "/Users/joe/Library/Application Support/Blender/3.6/scripts/addons/blender-addon/__init__.py", line 229, in execute
    opacity_geom_attr_node.outputs["Value"],
KeyError: 'bpy_prop_collection[key]: key "Value" not found'
bpy.ops.object.import_gaussian_splatting(filepath="/Users/joe/Downloads/toy-village-splat.ply")
Python: Traceback (most recent call last):
  File "/Users/joe/Library/Application Support/Blender/3.6/scripts/addons/blender-addon/__init__.py", line 1135, in draw
    row.prop(obj.modifiers["GeometryNodes"].node_group.nodes.get("Boolean"), "boolean", text="As point cloud (faster)")
KeyError: 'bpy_prop_collection[key]: key "GeometryNodes" not found'
Python: Traceback (most recent call last):
  File "/Users/joe/Library/Application Support/Blender/3.6/scripts/addons/blender-addon/__init__.py", line 1135, in draw
    row.prop(obj.modifiers["GeometryNodes"].node_group.nodes.get("Boolean"), "boolean", text="As point cloud (faster)")
KeyError: 'bpy_prop_collection[key]: key "GeometryNodes" not found'
Python: Traceback (most recent call last):
  File "/Users/joe/Library/Application Support/Blender/3.6/scripts/addons/blender-addon/__init__.py", line 1135, in draw
    row.prop(obj.modifiers["GeometryNodes"].node_group.nodes.get("Boolean"), "boolean", text="As point cloud (faster)")
KeyError: 'bpy_prop_collection[key]: key "GeometryNodes" not found'
Python: Traceback (most recent call last):
  File "/Users/joe/Library/Application Support/Blender/3.6/scripts/addons/blender-addon/__init__.py", line 1135, in draw
    row.prop(obj.modifiers["GeometryNodes"].node_group.nodes.get("Boolean"), "boolean", text="As point cloud (faster)")
KeyError: 'bpy_prop_collection[key]: key "GeometryNodes" not found'
Python: Traceback (most recent call last):
  File "/Users/joe/Library/Application Support/Blender/3.6/scripts/addons/blender-addon/__init__.py", line 1135, in draw
    row.prop(obj.modifiers["GeometryNodes"].node_group.nodes.get("Boolean"), "boolean", text="As point cloud (faster)")
KeyError: 'bpy_prop_collection[key]: key "GeometryNodes" not found'
Python: Traceback (most recent call last):
  File "/Users/joe/Library/Application Support/Blender/3.6/scripts/addons/blender-addon/__init__.py", line 1135, in draw
    row.prop(obj.modifiers["GeometryNodes"].node_group.nodes.get("Boolean"), "boolean", text="As point cloud (faster)")
KeyError: 'bpy_prop_collection[key]: key "GeometryNodes" not found'
Python: Traceback (most recent call last):
  File "/Users/joe/Library/Application Support/Blender/3.6/scripts/addons/blender-addon/__init__.py", line 1135, in draw
    row.prop(obj.modifiers["GeometryNodes"].node_group.nodes.get("Boolean"), "boolean", text="As point cloud (faster)")
KeyError: 'bpy_prop_collection[key]: key "GeometryNodes" not found'

If you are able to give me any help I'd really appreciate it. I'm not very familiar with blender scripting unfortunately otherwise I'd try to fix this myself.

alexandre01 commented 9 months ago

Thanks for trying! I tested the add-on on Linux only, it seems the "GeometryNodes" key has a different name on MacOs / Windows. Will work on this hopefully this evening!

glaciate-ruby-antelope commented 9 months ago

Hi, I have the same issue and same setup as @joebain . Looking forward to the update to try it out!

@alexandre01 Let me know if I can help in anyway! I'm not a coder but I work with lidar, photogrammetry quite a bit.

alexandre01 commented 9 months ago

Should be fixed

glaciate-ruby-antelope commented 9 months ago

It does work on mac now.

THANKS!

On Oct 4, 2023, at 15:47, Alexandre Carlier @.***> wrote:

Should be fixed

— Reply to this email directly, view it on GitHub https://github.com/ReshotAI/gaussian-splatting-blender-addon/issues/2#issuecomment-1746916400, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAISA3IC5R5GBQGMRSOGDRLX5VSIXAVCNFSM6AAAAAA5QWR5GKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBWHEYTMNBQGA. You are receiving this because you are subscribed to this thread.

Ednaordinary commented 9 months ago

Thanks for trying! I tested the addon on Linux only, it seems the "GeometryNodes" key has a different name on macOS / Windows. I will work on this hopefully this evening!

Doesn't seem to be OS dependent, I had the same error before fixing it on my own install (I thought it might be a version issue, I'm on Blender 3.6.0, Linux).

alexandre01 commented 9 months ago

Yes yes it was due to something I had forgotten to push. Seems you found the 2/3 lines to edit to fix it