ReshotAI / gaussian-splatting-blender-addon

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

import Error #25

Open Lindsaydoodle opened 5 months ago

Lindsaydoodle commented 5 months ago

Blender 3.6.8 Python: Traceback (most recent call last): File "C:\Users\lind\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\blender-addon__init__.py", line 74, in execute features_dc[:, 0, 0] = np.asarray(plydata.elements[0]["f_dc_0"]) File "C:\Users\lind\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\blender-addon\plyfile.py", line 715, in getitem return self.data[key] File "M:\SteamLibrary\steamapps\common\Blender\3.6\python\lib\site-packages\numpy\core\memmap.py", line 334, in getitem res = super().getitem(index) ValueError: no field of name f_dc_0

Bleder 4.1.0 and 4.0.2 same Python: Traceback (most recent call last): File "C:\Users\lind\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\blender-addon__init__.py", line 74, in execute features_dc[:, 0, 0] = np.asarray(plydata.elements[0]["f_dc_0"])


  File "C:\Users\lind\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\blender-addon\plyfile.py", line 715, in __getitem__
    return self.data[key]
           ~~~~~~~~~^^^^^
  File "S:\blender-4.1.0-alpha+main.da77f90744c1-windows.amd64-release\4.1\python\Lib\site-packages\numpy\core\memmap.py", line 334, in __getitem__
    res = super().__getitem__(index)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: no field of name f_dc_0
IgorVe commented 5 months ago

same issue plz help

IgorVe commented 5 months ago

Solved. It was wrong version of the addon, you can fond info here https://github.com/ReshotAI/gaussian-splatting-blender-addon/pull/24/files

But dear ReshotAI, could you name your projects properly plz to avoid misunderstandings in future? Thank you!