ReshotAI / gaussian-splatting-blender-addon

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

Error on Export #6

Closed Elvis33LE closed 8 months ago

Elvis33LE commented 8 months ago

I get this error on exporting. Wanted to adjust the rotation and posotion for later use and reexport. Unfortunately the mesh has no position attribute.

Python: Traceback (most recent call last): File "C:\Users\User1\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\blender-addon__init__.py", line 1075, in execute xyz[i] = position_attr.data[i].vector.to_tuple() AttributeError: 'NoneType' object has no attribute 'data'

legsoft commented 8 months ago

Had the same problem. Open the init.py file of the plugin.

Comment Out Line 1075 #xyz[i] = position_attr.data[i].vector.to_tuple()

Replace Line 1058 xyz = np.zeros((N, 3)) With xyz = np.array([vert.co for vert in mesh.vertices])

Elvis33LE commented 8 months ago

Thanks alot, this worked for me 👍