ReshotAI / gaussian-splatting-blender-addon

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

There are some issues in Blender 4.1 #31

Open ETLin opened 3 months ago

ETLin commented 3 months ago

Foundation\Blender\4.1\scripts\addons\blender-addon__init__.py", line 970, in execute switch_node.inputs[14]


IndexError: bpy_prop_collection[index]: index 14 out of range, size 3

i try to read the code but still don't know bpy_prop_collection[14] for what
Kanaskanas commented 2 months ago

I have the same issue :/ Any solution found ?

ninofiliu commented 2 months ago

Same issue here

image

ninofiliu commented 2 months ago

I'm just trying this out on the first gaussian splat i found

https://poly.cam/capture/59a5b823-2076-4eb0-a795-0dd6fa0910fd

ninofiliu commented 2 months ago

Interesting, the addon init file seems to precise that Blender@4.0.0 is supported

https://github.com/ReshotAI/gaussian-splatting-blender-addon/blob/b228419a864518d79eb316059da1386e38ea1da9/blender-addon/__init__.py#L5

I am running Blender@4.1.1 which according to semver should work too, but let me downgrade and try again

ninofiliu commented 2 months ago

yup, it works in 4.0.0!

image

Kanaskanas commented 2 months ago

Yes it also worked for me when downgrading to 4.0. But is there any chance to make it work on 4.1 ?

Kaidz3n commented 2 months ago

Screenshot 2024-04-27 123949 I have error, can't upload. I tried 4.0.0 / 4.02 / 4.1.0

PLAN8VR commented 2 months ago

Yes, works on V4.0.0 but not 4.1.1 for me

Same error as others above

lzhangsh commented 2 months ago

Same here. Works on V4.0.0 but not 4.1.1 :( fyi, I downloaded the .msi for my windows laptop from https://mirror.clarkson.edu/blender/release/Blender4.0/

yuzheng-cosmos commented 2 months ago

For the people who curious about this issue. The problem is due to Geomtry nodes cannot proproly linked on the new version via python code. Screenshot 2024-04-28 215710

If you want to use Gaussian Splatting in version 4.1. I think you can link the geometry node mannually by following the 4.0 settings which are here. Screenshot 2024-04-28 215452

So to fix this issue, you need to modify the init.py file and change some index number. You can do it by using a text editor app.

  1. line 965 switch_node.inputs[0]
  2. line 970 switch_node.inputs[1]
  3. line 980 switch_node.inputs[2]
  4. line 984 switch_node.outputs[0], Then problem solved for the version 4.1. I will not submit a pull request for this. Maybe developer can update this issue.
PLAN8VR commented 2 months ago

For the people who curious about this issue. The problem is due to Geomtry nodes cannot proproly linked on the new version via python code. Screenshot 2024-04-28 215710

If you want to use Gaussian Splatting in version 4.1. I think you can link the geometry node mannually by following the 4.0 settings which are here. Screenshot 2024-04-28 215452

So to fix this issue, you need to modify the init.py file and change some index number. You can do it by using a text editor app.

  1. line 965 switch_node.inputs[0]
  2. line 970 switch_node.inputs[1]
  3. line 980 switch_node.inputs[2]
  4. line 984 switch_node.outputs[0], Then problem solved for the version 4.1. I will not submit a pull request for this. Maybe developer can update this issue.

Thank you for sorting this and posting it - Worked for me with 4.1.1

yup-seo commented 1 month ago

So to fix this issue, you need to modify the init.py file and change some index number. You can do it by using a text editor app.

  1. line 965 switch_node.inputs[0]
  2. line 970 switch_node.inputs[1]
  3. line 980 switch_node.inputs[2]
  4. line 984 switch_node.outputs[0], Then problem solved for the version 4.1. I will not submit a pull request for this. Maybe developer can update this issue.

Thank you! This works perfectly.

AlexMorgand commented 1 month ago

Fixed the issue as well for Blender 4.1, cheers @valentijnYu !