|
Post by simsway on Apr 7, 2021 16:39:00 GMT -5
Hi, I just got this error when I tried to export a mesh from S4S. I'm using Blender version 2.70 when I import and export and never had this issue before. I tried multiple solutions I read on S4S threads but nothing worked. This is the error I'm getting:
The Sims 4 Studio - Version 3.1.4.9
System.AggregateException: One or more errors occurred. ---> S4Studio.Blender.BlenderException:
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\2.70\scripts\addons\io_scene_valvesource\utils.py", line 489, in scene_update
if bpy.context.active_object:
AttributeError: 'Context' object has no attribute 'active_object'
at S4Studio.Blender.BlenderUtilities.RunBlender(String script, String blend, Boolean background, Boolean check_version)
at S4Studio.Blender.BlenderUtilities.ExportGeom(String custom_blend, String custom_geom, String custom_texture, String caspart_name, String mannequin_folder, String mannequin_texture, String rig_resource)
at S4Studio.ViewModels.CAS.CASLODItem.ExportMesh(BlenderUtilities blender_util, String blender_path)
at S4Studio.ViewModels.CAS.CASStandalone.<>c__DisplayClass74_0.<ExecuteExportMesh>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 "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\2.70\scripts\addons\io_scene_valvesource\utils.py", line 489, in scene_update
if bpy.context.active_object:
AttributeError: 'Context' object has no attribute 'active_object'
at S4Studio.Blender.BlenderUtilities.RunBlender(String script, String blend, Boolean background, Boolean check_version)
at S4Studio.Blender.BlenderUtilities.ExportGeom(String custom_blend, String custom_geom, String custom_texture, String caspart_name, String mannequin_folder, String mannequin_texture, String rig_resource)
at S4Studio.ViewModels.CAS.CASLODItem.ExportMesh(BlenderUtilities blender_util, String blender_path)
at S4Studio.ViewModels.CAS.CASStandalone.<>c__DisplayClass74_0.<ExecuteExportMesh>b__0()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()<---
|
|
|
Post by mauvemorn on Apr 7, 2021 16:53:00 GMT -5
Hi. Did you navigate s4s to the location of Blender 2.7 in the settings? Did you close and open the software after that? If yes, try doing the same with 2.76
|
|
|
Post by simsway on Apr 7, 2021 17:03:27 GMT -5
Yes, the path to blender 2.70 is properly navigated. I tried 2.76 but it gives me an error as well.
|
|
|
Post by mauvemorn on Apr 8, 2021 11:40:40 GMT -5
I don't see anything about s4s not having access to the files but just in case maybe try adding s4s to exceptions in your antivirus. Are you trying to export from a maxis package or from a cc one?
|
|
|
Post by simsway on Apr 8, 2021 12:29:34 GMT -5
Blender 2.76 gives me a different error than 2.70. I will post it bellow. I tried both .zip and .exe files on both versions but they still gave me the error. It doesn't matter if it's CC or a maxis file, I can't export or import anything.
The Sims 4 Studio - Version 3.1.4.9 System.AggregateException: One or more errors occurred. ---> S4Studio.Blender.BlenderException: File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\2.76\scripts\addons\io_scene_valvesource\utils.py", line 489, in scene_update if bpy.context.active_object: AttributeError: 'Context' object has no attribute 'active_object' AL lib: (EE) UpdateDeviceParams: Failed to set 44100hz, got 48000hz instead
at S4Studio.Blender.BlenderUtilities.RunBlender(String script, String blend, Boolean background, Boolean check_version) at S4Studio.Blender.BlenderUtilities.ExportGeom(String custom_blend, String custom_geom, String custom_texture, String caspart_name, String mannequin_folder, String mannequin_texture, String rig_resource) at S4Studio.ViewModels.CAS.CASLODItem.ExportMesh(BlenderUtilities blender_util, String blender_path) at S4Studio.ViewModels.CAS.CASStandalone.<>c__DisplayClass74_0.<ExecuteExportMesh>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 "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\2.76\scripts\addons\io_scene_valvesource\utils.py", line 489, in scene_update if bpy.context.active_object: AttributeError: 'Context' object has no attribute 'active_object' AL lib: (EE) UpdateDeviceParams: Failed to set 44100hz, got 48000hz instead
at S4Studio.Blender.BlenderUtilities.RunBlender(String script, String blend, Boolean background, Boolean check_version) at S4Studio.Blender.BlenderUtilities.ExportGeom(String custom_blend, String custom_geom, String custom_texture, String caspart_name, String mannequin_folder, String mannequin_texture, String rig_resource) at S4Studio.ViewModels.CAS.CASLODItem.ExportMesh(BlenderUtilities blender_util, String blender_path) at S4Studio.ViewModels.CAS.CASStandalone.<>c__DisplayClass74_0.<ExecuteExportMesh>b__0() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.Execute()<---
|
|
|
Post by simsway on Apr 9, 2021 16:29:12 GMT -5
update:
I used Blender 2.79 and it did export the blend file. I tried many other versions of Blender and several ways to try and fix the errors but nothing worked. I will set this as solved but I still have no idea why other versions won't export all of a sudden.
|
|