Post by shkatzchen on Jun 14, 2021 0:48:07 GMT -5
Hello,
I'm posting this here because it's only happening with one particular package (so sorry if it's not the right spot).
I'm trying to make this smaller. That's it. No recolor, no messing with shape, no merging, just hitting the "scale" button in blender and making it about half the size so I can make it fit amongst other clutter better.
I exported the mesh and opened it with blender. I made it smaller. I saved it. I imported it into Sims 4 Studio. That was fine. Then I went back to blender. I changed the number of mesh_1 to 0 under S4Studio CAS Tools, as I do whenever I am trying to make shadows. This normally works (changing both to '1' doesn't work either, I did try that). So I change it, I save it, and I go to import it into Studio. I get hit with a message that there is a vertex group present (transformbone) which is not present in the original mesh. So I go and I delete it (which took quite a while to figure out how to do, but it worked eventually). I save and I go to put it into Studio. At which point I get this:
I don't know what that means. I'm still rather new to mods and I've only just started messing with meshes at all (I just learned how to delete bits of meshes and to make them smaller this weekend) so I have no clue what is going on most of the time and it's a lot of trial and error and google.
I have had other problems of late importing other shadow meshes, but not quite in this way.
Thanks for any help you can give!
I'm posting this here because it's only happening with one particular package (so sorry if it's not the right spot).
I'm trying to make this smaller. That's it. No recolor, no messing with shape, no merging, just hitting the "scale" button in blender and making it about half the size so I can make it fit amongst other clutter better.
I exported the mesh and opened it with blender. I made it smaller. I saved it. I imported it into Sims 4 Studio. That was fine. Then I went back to blender. I changed the number of mesh_1 to 0 under S4Studio CAS Tools, as I do whenever I am trying to make shadows. This normally works (changing both to '1' doesn't work either, I did try that). So I change it, I save it, and I go to import it into Studio. I get hit with a message that there is a vertex group present (transformbone) which is not present in the original mesh. So I go and I delete it (which took quite a while to figure out how to do, but it worked eventually). I save and I go to put it into Studio. At which point I get this:
The Sims 4 Studio - Version 3.1.5.1
System.AggregateException: One or more errors occurred. ---> S4Studio.Blender.BlenderException:
File "<string>", line 1, in <module>
File "<string>", line 14, in <module>
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\2.70\scripts\addons\s4studio\buybuild\blender.py", line 393, in save_lod
save_mesh(blender_mesh, m, new_mesh, geometry_state)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\2.70\scripts\addons\s4studio\buybuild\blender.py", line 214, in save_mesh
sim_mesh_data = collect_mesh_data(blender_mesh)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\2.70\scripts\addons\s4studio\blender\__init__.py", line 303, in collect_mesh_data
bone_idx = vertex_group_map[mesh_object.vertex_groups[int(vertex.groups.group)].name]
IndexError: bpy_prop_collection[index]: index 0 out of range, size 0
at S4Studio.Blender.BlenderUtilities.RunBlender(String script, String blend, Boolean background, Boolean check_version)
at S4Studio.Blender.BlenderUtilities.ImportMlod(String fileName, String mlod, String rig, String state)
at S4Studio.ViewModels.ObjectLodItem.ImportMesh(BlenderUtilities blender_util, String blender_path)
at S4Studio.ViewModels.ObjectLodItem.<>c__DisplayClass49_0.<ImportMesh>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 14, in <module>
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\2.70\scripts\addons\s4studio\buybuild\blender.py", line 393, in save_lod
save_mesh(blender_mesh, m, new_mesh, geometry_state)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\2.70\scripts\addons\s4studio\buybuild\blender.py", line 214, in save_mesh
sim_mesh_data = collect_mesh_data(blender_mesh)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\2.70\scripts\addons\s4studio\blender\__init__.py", line 303, in collect_mesh_data
bone_idx = vertex_group_map[mesh_object.vertex_groups[int(vertex.groups.group)].name]
IndexError: bpy_prop_collection[index]: index 0 out of range, size 0
at S4Studio.Blender.BlenderUtilities.RunBlender(String script, String blend, Boolean background, Boolean check_version)
at S4Studio.Blender.BlenderUtilities.ImportMlod(String fileName, String mlod, String rig, String state)
at S4Studio.ViewModels.ObjectLodItem.ImportMesh(BlenderUtilities blender_util, String blender_path)
at S4Studio.ViewModels.ObjectLodItem.<>c__DisplayClass49_0.<ImportMesh>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 14, in <module>
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\2.70\scripts\addons\s4studio\buybuild\blender.py", line 393, in save_lod
save_mesh(blender_mesh, m, new_mesh, geometry_state)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\2.70\scripts\addons\s4studio\buybuild\blender.py", line 214, in save_mesh
sim_mesh_data = collect_mesh_data(blender_mesh)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\2.70\scripts\addons\s4studio\blender\__init__.py", line 303, in collect_mesh_data
bone_idx = vertex_group_map[mesh_object.vertex_groups[int(vertex.groups.group)].name]
IndexError: bpy_prop_collection[index]: index 0 out of range, size 0
at S4Studio.Blender.BlenderUtilities.RunBlender(String script, String blend, Boolean background, Boolean check_version)
at S4Studio.Blender.BlenderUtilities.ImportMlod(String fileName, String mlod, String rig, String state)
at S4Studio.ViewModels.ObjectLodItem.ImportMesh(BlenderUtilities blender_util, String blender_path)
at S4Studio.ViewModels.ObjectLodItem.<>c__DisplayClass49_0.<ImportMesh>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 14, in <module>
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\2.70\scripts\addons\s4studio\buybuild\blender.py", line 393, in save_lod
save_mesh(blender_mesh, m, new_mesh, geometry_state)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\2.70\scripts\addons\s4studio\buybuild\blender.py", line 214, in save_mesh
sim_mesh_data = collect_mesh_data(blender_mesh)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\2.70\scripts\addons\s4studio\blender\__init__.py", line 303, in collect_mesh_data
bone_idx = vertex_group_map[mesh_object.vertex_groups[int(vertex.groups.group)].name]
IndexError: bpy_prop_collection[index]: index 0 out of range, size 0
at S4Studio.Blender.BlenderUtilities.RunBlender(String script, String blend, Boolean background, Boolean check_version)
at S4Studio.Blender.BlenderUtilities.ImportMlod(String fileName, String mlod, String rig, String state)
at S4Studio.ViewModels.ObjectLodItem.ImportMesh(BlenderUtilities blender_util, String blender_path)
at S4Studio.ViewModels.ObjectLodItem.<>c__DisplayClass49_0.<ImportMesh>b__0()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()<---
I don't know what that means. I'm still rather new to mods and I've only just started messing with meshes at all (I just learned how to delete bits of meshes and to make them smaller this weekend) so I have no clue what is going on most of the time and it's a lot of trial and error and google.
I have had other problems of late importing other shadow meshes, but not quite in this way.
Thanks for any help you can give!