Post by gibi on Sept 8, 2021 21:09:48 GMT -5
I'm trying to edit a piano, and haven't been able to import a shadow mesh. For testing, I tried exporting the existing shadow mesh, and the importing the file without making any changes, and I get an error. I don't have this problem with the normal meshes, just the shadow ones.
Things I've tried:
Here's the error message:
Sims 4 Studio 1.3.3.1 (Apple Blossom)
S4Studio.Blender.BlenderException:
File "/Users/[UserName]/.local/share/S4Studio/Scripts/objectexporter.py", line 14, in <module>
save_lod(mlod,geometry_state)
File "/Users/[UserName]/Library/Application Support/Blender/2.78/scripts/addons/s4studio/buybuild/blender.py", line 393, in save_lod
save_mesh(blender_mesh, m, new_mesh, geometry_state)
File "/Users/[UserName]/Library/Application Support/Blender/2.78/scripts/addons/s4studio/buybuild/blender.py", line 279, in save_mesh
pos_scales = calculate_pos_scales(total_mesh_bounds, max_pos_size)
File "/Users/[UserName]/Library/Application Support/Blender/2.78/scripts/addons/s4studio/buybuild/geometry.py", line 38, in calculate_pos_scales
extremes = [math.ceil(max([abs(x) for x in extremes]))] * 3
OverflowError: cannot convert float infinity to integer
at S4Studio.Blender.BlenderUtilities.RunBlender (System.String script, System.String blend, System.Boolean background, System.Boolean check_version) [0x00313] in <eced9a790f294ca685a0eccd4d198fcb>:0
at S4Studio.Blender.BlenderUtilities.ImportMlod (System.String fileName, System.String mlod, System.String rig, System.String state) [0x0009e] in <eced9a790f294ca685a0eccd4d198fcb>:0
at S4Studio.ViewModels.ObjectLodItem.ImportMesh (S4Studio.Blender.BlenderUtilities blender_util, System.String blender_path) [0x000d7] in <eced9a790f294ca685a0eccd4d198fcb>:0
at S4Studio.ViewModels.ObjectLodItem+<>c__DisplayClass49_0.<ImportMesh>b__0 () [0x00022] in <eced9a790f294ca685a0eccd4d198fcb>:0
at S4S.UI.Core.S4SWindow+<>c__DisplayClass11_0.<BeginLoading>b__1 () [0x00014] in <eced9a790f294ca685a0eccd4d198fcb>:0
Things I've tried:
- Trying the same thing with different creation settings for the piano: "create mesh," "override," "selective clone"
- Trying the same thing with a shower (it worked fine)
Here's the error message:
Sims 4 Studio 1.3.3.1 (Apple Blossom)
S4Studio.Blender.BlenderException:
File "/Users/[UserName]/.local/share/S4Studio/Scripts/objectexporter.py", line 14, in <module>
save_lod(mlod,geometry_state)
File "/Users/[UserName]/Library/Application Support/Blender/2.78/scripts/addons/s4studio/buybuild/blender.py", line 393, in save_lod
save_mesh(blender_mesh, m, new_mesh, geometry_state)
File "/Users/[UserName]/Library/Application Support/Blender/2.78/scripts/addons/s4studio/buybuild/blender.py", line 279, in save_mesh
pos_scales = calculate_pos_scales(total_mesh_bounds, max_pos_size)
File "/Users/[UserName]/Library/Application Support/Blender/2.78/scripts/addons/s4studio/buybuild/geometry.py", line 38, in calculate_pos_scales
extremes = [math.ceil(max([abs(x) for x in extremes]))] * 3
OverflowError: cannot convert float infinity to integer
at S4Studio.Blender.BlenderUtilities.RunBlender (System.String script, System.String blend, System.Boolean background, System.Boolean check_version) [0x00313] in <eced9a790f294ca685a0eccd4d198fcb>:0
at S4Studio.Blender.BlenderUtilities.ImportMlod (System.String fileName, System.String mlod, System.String rig, System.String state) [0x0009e] in <eced9a790f294ca685a0eccd4d198fcb>:0
at S4Studio.ViewModels.ObjectLodItem.ImportMesh (S4Studio.Blender.BlenderUtilities blender_util, System.String blender_path) [0x000d7] in <eced9a790f294ca685a0eccd4d198fcb>:0
at S4Studio.ViewModels.ObjectLodItem+<>c__DisplayClass49_0.<ImportMesh>b__0 () [0x00022] in <eced9a790f294ca685a0eccd4d198fcb>:0
at S4S.UI.Core.S4SWindow+<>c__DisplayClass11_0.<BeginLoading>b__1 () [0x00014] in <eced9a790f294ca685a0eccd4d198fcb>:0