Post by erisuerise on Apr 3, 2021 7:45:42 GMT -5
Hello, so I'm actually trying to import a hairstyle from a video game's ripped model into sims 4 for personal fun/practice working with Blender. I was following a tutorial. However, when I tried to import the file into my cloned package, it gives me this error:
Some other necessary stuffs/details:
My .blend file that I imported
My package
My default working file (with the separate hair mesh + sims4studio mesh package- In case anyone wanna see the original hair mesh I was working with since the WIP file has everything all joined)
The tutorial I follow: here
I know the tutorial is for converting an MMD hair mesh into sims4 but I think any 3D mesh should work??
After my failure, few things I tried later that are not mentioned in the tutorial/different from that tutorial included:
None of them ended up fixing the problem, and I can't figure out what I messed up on.
The strangest thing is that I was able to import an earlier .blend file following the same steps listed by that tutorial a few weeks ago (I didn't weightpaint stuffs past b_Spine2 though.) I don't really know what I did right(?) that time compared to this one (or maybe that was just a lucky break idk.)
Thanks in advance!!
The Sims 4 Studio - Version 3.1.4.8
System.AggregateException: One or more errors occurred. ---> S4Studio.Blender.BlenderException:
File "<string>", line 1, in <module>
File "<string>", line 39, in <module>
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\2.70\scripts\addons\s4studio\cas\blender.py", line 123, in save_geom
blend_index = vertex_group_map[mesh_object.vertex_groups[int(vertex.groups.group)].name]
IndexError: bpy_prop_collection[index]: index 827 out of range, size 15
at S4Studio.Blender.BlenderUtilities.RunBlender(String script, String blend, Boolean background, Boolean check_version)
at S4Studio.Blender.BlenderUtilities.ImportGeom(String custom_blend, String custom_geom, Int32 body_type, String cut)
at S4Studio.ViewModels.CAS.CASLODItem.ImportMesh(BlenderUtilities blender_util, String blender_path)
at S4Studio.ViewModels.CAS.CASStandalone.<>c__DisplayClass71_0.<ExecuteImportMesh>b__0()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of inner exception stack trace ---
---> (Inner Exception #0) S4Studio.Blender.BlenderException:
File "<string>", line 1, in <module>
File "<string>", line 39, in <module>
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\2.70\scripts\addons\s4studio\cas\blender.py", line 123, in save_geom
blend_index = vertex_group_map[mesh_object.vertex_groups[int(vertex.groups.group)].name]
IndexError: bpy_prop_collection[index]: index 827 out of range, size 15
at S4Studio.Blender.BlenderUtilities.RunBlender(String script, String blend, Boolean background, Boolean check_version)
at S4Studio.Blender.BlenderUtilities.ImportGeom(String custom_blend, String custom_geom, Int32 body_type, String cut)
at S4Studio.ViewModels.CAS.CASLODItem.ImportMesh(BlenderUtilities blender_util, String blender_path)
at S4Studio.ViewModels.CAS.CASStandalone.<>c__DisplayClass71_0.<ExecuteImportMesh>b__0()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()<---
System.AggregateException: One or more errors occurred. ---> S4Studio.Blender.BlenderException:
File "<string>", line 1, in <module>
File "<string>", line 39, in <module>
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\2.70\scripts\addons\s4studio\cas\blender.py", line 123, in save_geom
blend_index = vertex_group_map[mesh_object.vertex_groups[int(vertex.groups.group)].name]
IndexError: bpy_prop_collection[index]: index 827 out of range, size 15
at S4Studio.Blender.BlenderUtilities.RunBlender(String script, String blend, Boolean background, Boolean check_version)
at S4Studio.Blender.BlenderUtilities.ImportGeom(String custom_blend, String custom_geom, Int32 body_type, String cut)
at S4Studio.ViewModels.CAS.CASLODItem.ImportMesh(BlenderUtilities blender_util, String blender_path)
at S4Studio.ViewModels.CAS.CASStandalone.<>c__DisplayClass71_0.<ExecuteImportMesh>b__0()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of inner exception stack trace ---
---> (Inner Exception #0) S4Studio.Blender.BlenderException:
File "<string>", line 1, in <module>
File "<string>", line 39, in <module>
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\2.70\scripts\addons\s4studio\cas\blender.py", line 123, in save_geom
blend_index = vertex_group_map[mesh_object.vertex_groups[int(vertex.groups.group)].name]
IndexError: bpy_prop_collection[index]: index 827 out of range, size 15
at S4Studio.Blender.BlenderUtilities.RunBlender(String script, String blend, Boolean background, Boolean check_version)
at S4Studio.Blender.BlenderUtilities.ImportGeom(String custom_blend, String custom_geom, Int32 body_type, String cut)
at S4Studio.ViewModels.CAS.CASLODItem.ImportMesh(BlenderUtilities blender_util, String blender_path)
at S4Studio.ViewModels.CAS.CASStandalone.<>c__DisplayClass71_0.<ExecuteImportMesh>b__0()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()<---
My .blend file that I imported
My package
My default working file (with the separate hair mesh + sims4studio mesh package- In case anyone wanna see the original hair mesh I was working with since the WIP file has everything all joined)
The tutorial I follow: here
I know the tutorial is for converting an MMD hair mesh into sims4 but I think any 3D mesh should work??
After my failure, few things I tried later that are not mentioned in the tutorial/different from that tutorial included:
- Duplicate my hair mesh 3x and change their cut numbers to fit the sims4 studio meshes (since I initially suspected that to be the problem- the tutorial didn't mention the cut numbers at all despite it being important for many meshes, according to my research.)
- Weightpaint each of those meshes individually before joining them separately w/ the respective sims4studio mesh with matching cut number
- Not being as extensive for my weight paint (i only painted the mesh to b_head since the hair is pretty short)
- I have also tried looking into vertex painting but from my end, the EA mesh for hair is like. colorless. So I don't think that's the problem
None of them ended up fixing the problem, and I can't figure out what I messed up on.
The strangest thing is that I was able to import an earlier .blend file following the same steps listed by that tutorial a few weeks ago (I didn't weightpaint stuffs past b_Spine2 though.) I don't really know what I did right(?) that time compared to this one (or maybe that was just a lucky break idk.)
Thanks in advance!!