Post by asterofthedeepforest on Mar 9, 2024 22:24:02 GMT -5
I'm getting this error when trying to import a mesh that previously worked fine and I am not sure why its suddenly not working
heres a zip with the blend and package file
and here is the error message
The Sims 4 Studio - Version 3.2.1.4
System.AggregateException: One or more errors occurred. (Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\ProgramData\S4Studio\Scripts\geomexporter.py", line 41, in <module>
save_geom(geom, o, body_type)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\cas\blender.py", line 23, in save_geom
apply_all_modifiers(mesh_object)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\blender\__init__.py", line 188, in apply_all_modifiers
bpy.ops.object.convert(target='MESH')
File "D:\blender-3.6.0-windows-x64\blender-3.6.0-windows-x64\3.6\scripts\modules\bpy\ops.py", line 113, in __call__
ret = _op_call(self.idname_py(), None, kw)
RuntimeError: Operator bpy.ops.object.convert.poll() failed, context is incorrect
Reloading external rigs...
Reloading external metarigs...
changing mode from OBJECT to OBJECT select=None
Mode is now None
changing mode from None to OBJECT select=<bpy_struct, Object("geom.010") at 0x000001D58A067908>
Mode is now OBJECT
changing mode from OBJECT to EDIT select=<bpy_struct, Object("geom.010") at 0x000001D58A067908>
Mode is now EDIT
changing mode from EDIT to OBJECT select=<bpy_struct, Object("geom.010") at 0x000001D58A067908>
Mode is now OBJECT
ROTATING mode= OBJECT active=<bpy_struct, Object("geom.010") at 0x000001D58A067908>
saving mesh...<bpy_collection[0], AttributeGroup>
vertex_ids = None
color_channels = []
changing mode from OBJECT to OBJECT select=<bpy_struct, Object("geom.010") at 0x000001D58A067908>
changing mode from OBJECT to OBJECT select=<bpy_struct, Object("s4studio_mesh_2") at 0x000001D58A064108>
Mode is now OBJECT
Exception in module unregister(): 'D:\\blender-3.6.0-windows-x64\\blender-3.6.0-windows-x64\\3.6\\scripts\\addons\\materials_utils\\__init__.py'
Blender quit
)
---> S4Studio.Blender.BlenderException: Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\ProgramData\S4Studio\Scripts\geomexporter.py", line 41, in <module>
save_geom(geom, o, body_type)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\cas\blender.py", line 23, in save_geom
apply_all_modifiers(mesh_object)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\blender\__init__.py", line 188, in apply_all_modifiers
bpy.ops.object.convert(target='MESH')
File "D:\blender-3.6.0-windows-x64\blender-3.6.0-windows-x64\3.6\scripts\modules\bpy\ops.py", line 113, in __call__
ret = _op_call(self.idname_py(), None, kw)
RuntimeError: Operator bpy.ops.object.convert.poll() failed, context is incorrect
Reloading external rigs...
Reloading external metarigs...
changing mode from OBJECT to OBJECT select=None
Mode is now None
changing mode from None to OBJECT select=<bpy_struct, Object("geom.010") at 0x000001D58A067908>
Mode is now OBJECT
changing mode from OBJECT to EDIT select=<bpy_struct, Object("geom.010") at 0x000001D58A067908>
Mode is now EDIT
changing mode from EDIT to OBJECT select=<bpy_struct, Object("geom.010") at 0x000001D58A067908>
Mode is now OBJECT
ROTATING mode= OBJECT active=<bpy_struct, Object("geom.010") at 0x000001D58A067908>
saving mesh...<bpy_collection[0], AttributeGroup>
vertex_ids = None
color_channels = []
changing mode from OBJECT to OBJECT select=<bpy_struct, Object("geom.010") at 0x000001D58A067908>
changing mode from OBJECT to OBJECT select=<bpy_struct, Object("s4studio_mesh_2") at 0x000001D58A064108>
Mode is now OBJECT
Exception in module unregister(): 'D:\\blender-3.6.0-windows-x64\\blender-3.6.0-windows-x64\\3.6\\scripts\\addons\\materials_utils\\__init__.py'
Blender quit
at S4Studio.Blender.BlenderUtilities.RunBlender(String script, String blend, Boolean background, Boolean check_version) in \\mac\thes4studio\TheS4Studio\S4Studio.Shared\BlenderUtilities.cs:line 231
at S4Studio.Blender.BlenderUtilities.ImportGeom(String custom_blend, String custom_geom, Int32 body_type, String cut) in \\mac\thes4studio\TheS4Studio\S4Studio.Shared\BlenderUtilities.cs:line 371
at S4Studio.ViewModels.CAS.CASLODItem.ImportMesh(BlenderUtilities blender_util, String blender_path) in \\mac\thes4studio\TheS4Studio\S4Studio.Shared\ViewModels\CAS\CASLODItem.cs:line 203
at S4Studio.ViewModels.CAS.CASStandalone.<>c__DisplayClass76_0.<ExecuteImportMesh>b__0() in \\mac\thes4studio\TheS4Studio\S4Studio.Shared\ViewModels\CAS\CASStandalone.cs:line 443
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of inner exception stack trace ---
System.AggregateException: One or more errors occurred. (Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\ProgramData\S4Studio\Scripts\geomexporter.py", line 41, in <module>
save_geom(geom, o, body_type)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\cas\blender.py", line 23, in save_geom
apply_all_modifiers(mesh_object)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\blender\__init__.py", line 188, in apply_all_modifiers
bpy.ops.object.convert(target='MESH')
File "D:\blender-3.6.0-windows-x64\blender-3.6.0-windows-x64\3.6\scripts\modules\bpy\ops.py", line 113, in __call__
ret = _op_call(self.idname_py(), None, kw)
RuntimeError: Operator bpy.ops.object.convert.poll() failed, context is incorrect
Reloading external rigs...
Reloading external metarigs...
changing mode from OBJECT to OBJECT select=None
Mode is now None
changing mode from None to OBJECT select=<bpy_struct, Object("geom.010") at 0x000001D58A067908>
Mode is now OBJECT
changing mode from OBJECT to EDIT select=<bpy_struct, Object("geom.010") at 0x000001D58A067908>
Mode is now EDIT
changing mode from EDIT to OBJECT select=<bpy_struct, Object("geom.010") at 0x000001D58A067908>
Mode is now OBJECT
ROTATING mode= OBJECT active=<bpy_struct, Object("geom.010") at 0x000001D58A067908>
saving mesh...<bpy_collection[0], AttributeGroup>
vertex_ids = None
color_channels = []
changing mode from OBJECT to OBJECT select=<bpy_struct, Object("geom.010") at 0x000001D58A067908>
changing mode from OBJECT to OBJECT select=<bpy_struct, Object("s4studio_mesh_2") at 0x000001D58A064108>
Mode is now OBJECT
Exception in module unregister(): 'D:\\blender-3.6.0-windows-x64\\blender-3.6.0-windows-x64\\3.6\\scripts\\addons\\materials_utils\\__init__.py'
Blender quit
)
---> S4Studio.Blender.BlenderException: Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\ProgramData\S4Studio\Scripts\geomexporter.py", line 41, in <module>
save_geom(geom, o, body_type)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\cas\blender.py", line 23, in save_geom
apply_all_modifiers(mesh_object)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\blender\__init__.py", line 188, in apply_all_modifiers
bpy.ops.object.convert(target='MESH')
File "D:\blender-3.6.0-windows-x64\blender-3.6.0-windows-x64\3.6\scripts\modules\bpy\ops.py", line 113, in __call__
ret = _op_call(self.idname_py(), None, kw)
RuntimeError: Operator bpy.ops.object.convert.poll() failed, context is incorrect
Reloading external rigs...
Reloading external metarigs...
changing mode from OBJECT to OBJECT select=None
Mode is now None
changing mode from None to OBJECT select=<bpy_struct, Object("geom.010") at 0x000001D58A067908>
Mode is now OBJECT
changing mode from OBJECT to EDIT select=<bpy_struct, Object("geom.010") at 0x000001D58A067908>
Mode is now EDIT
changing mode from EDIT to OBJECT select=<bpy_struct, Object("geom.010") at 0x000001D58A067908>
Mode is now OBJECT
ROTATING mode= OBJECT active=<bpy_struct, Object("geom.010") at 0x000001D58A067908>
saving mesh...<bpy_collection[0], AttributeGroup>
vertex_ids = None
color_channels = []
changing mode from OBJECT to OBJECT select=<bpy_struct, Object("geom.010") at 0x000001D58A067908>
changing mode from OBJECT to OBJECT select=<bpy_struct, Object("s4studio_mesh_2") at 0x000001D58A064108>
Mode is now OBJECT
Exception in module unregister(): 'D:\\blender-3.6.0-windows-x64\\blender-3.6.0-windows-x64\\3.6\\scripts\\addons\\materials_utils\\__init__.py'
Blender quit
at S4Studio.Blender.BlenderUtilities.RunBlender(String script, String blend, Boolean background, Boolean check_version) in \\mac\thes4studio\TheS4Studio\S4Studio.Shared\BlenderUtilities.cs:line 231
at S4Studio.Blender.BlenderUtilities.ImportGeom(String custom_blend, String custom_geom, Int32 body_type, String cut) in \\mac\thes4studio\TheS4Studio\S4Studio.Shared\BlenderUtilities.cs:line 371
at S4Studio.ViewModels.CAS.CASLODItem.ImportMesh(BlenderUtilities blender_util, String blender_path) in \\mac\thes4studio\TheS4Studio\S4Studio.Shared\ViewModels\CAS\CASLODItem.cs:line 203
at S4Studio.ViewModels.CAS.CASStandalone.<>c__DisplayClass76_0.<ExecuteImportMesh>b__0() in \\mac\thes4studio\TheS4Studio\S4Studio.Shared\ViewModels\CAS\CASStandalone.cs:line 443
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of inner exception stack trace ---