Post by leafytrait on Apr 18, 2024 22:18:09 GMT -5
Hello. While trying to export clips for poses in s4s, I get this error message:
The Sims 4 Studio - Version 3.2.1.7
System.AggregateException: One or more errors occurred. (Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\ProgramData\S4Studio\Scripts\clipimporter.py", line 33, in <module>
mannequin_mesh = load_geom('geom', geom, {}, rig, mannequin_material)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\cas\blender.py", line 312, in load_geom
set_color(mesh,color_index,loop_index, create_color([c / 255.0 for c in vertex.colour[color_index]]))
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\blender\__init__.py", line 226, in set_color
mesh_data.color_attributes [color_index].data[loop].color_srgb = color
AttributeError: 'ByteColorAttributeValue' object has no attribute 'color_srgb'
changing mode from None to OBJECT select=None
Mode is now None
changing mode from None to OBJECT select=None
Mode is now None
changing mode from None to OBJECT select=None
Mode is now None
changing mode from None to EDIT select=<bpy_struct, Object("rig") at 0x00000210B822B908>
Mode is now EDIT
changing mode from EDIT to POSE select=<bpy_struct, Object("rig") at 0x00000210B822B908>
Mode is now POSE
changing mode from POSE to EDIT select=<bpy_struct, Object("rig") at 0x00000210B822B908>
Mode is now EDIT
changing mode from EDIT to EDIT select=None
Mode is now None
changing mode from None to OBJECT select=<bpy_struct, Object("rig") at 0x00000210B822B908>
Mode is now OBJECT
ROTATING mode= OBJECT active=<bpy_struct, Object("rig") at 0x00000210B822B908>
ROTATING mode= OBJECT active=<bpy_struct, Object("rig") at 0x00000210B822B908>
changing mode from OBJECT to POSE select=<bpy_struct, Object("rig") at 0x00000210B822B908>
Mode is now POSE
changing mode from OBJECT to OBJECT select=<bpy_struct, Object("geom") at 0x00000210B82D8108>
Blender quit
)
---> S4Studio.Blender.BlenderException: Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\ProgramData\S4Studio\Scripts\clipimporter.py", line 33, in <module>
mannequin_mesh = load_geom('geom', geom, {}, rig, mannequin_material)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\cas\blender.py", line 312, in load_geom
set_color(mesh,color_index,loop_index, create_color([c / 255.0 for c in vertex.colour[color_index]]))
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\blender\__init__.py", line 226, in set_color
mesh_data.color_attributes [color_index].data[loop].color_srgb = color
AttributeError: 'ByteColorAttributeValue' object has no attribute 'color_srgb'
changing mode from None to OBJECT select=None
Mode is now None
changing mode from None to OBJECT select=None
Mode is now None
changing mode from None to OBJECT select=None
Mode is now None
changing mode from None to EDIT select=<bpy_struct, Object("rig") at 0x00000210B822B908>
Mode is now EDIT
changing mode from EDIT to POSE select=<bpy_struct, Object("rig") at 0x00000210B822B908>
Mode is now POSE
changing mode from POSE to EDIT select=<bpy_struct, Object("rig") at 0x00000210B822B908>
Mode is now EDIT
changing mode from EDIT to EDIT select=None
Mode is now None
changing mode from None to OBJECT select=<bpy_struct, Object("rig") at 0x00000210B822B908>
Mode is now OBJECT
ROTATING mode= OBJECT active=<bpy_struct, Object("rig") at 0x00000210B822B908>
ROTATING mode= OBJECT active=<bpy_struct, Object("rig") at 0x00000210B822B908>
changing mode from OBJECT to POSE select=<bpy_struct, Object("rig") at 0x00000210B822B908>
Mode is now POSE
changing mode from OBJECT to OBJECT select=<bpy_struct, Object("geom") at 0x00000210B82D8108>
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.ExportClip(String custom_blend, String custom_clip, String mannequin_folder, String mannequin_texture, String rig_resource) in \\mac\thes4studio\TheS4Studio\S4Studio.Shared\BlenderUtilities.cs:line 441
at S4Studio.ViewModels.Animation.AnimationPackCustomContent.<>c__DisplayClass152_0.<DoExport>b__0() in \\mac\thes4studio\TheS4Studio\S4Studio.Shared\ViewModels\Animation\AnimationPackCustomContent.cs:line 945
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.Runtime.InteropServices.COMException (0x800401D0): OpenClipboard Failed (0x800401D0 (CLIPBRD_E_CANT_OPEN))
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode, IntPtr errorInfo)
at System.Windows.Clipboard.Flush()
at System.Windows.Clipboard.CriticalSetDataObject(Object data, Boolean copy)
at System.Windows.Clipboard.SetDataInternal(String format, Object data)
at System.Windows.Clipboard.SetText(String text, TextDataFormat format)
at System.Windows.Clipboard.SetText(String text)
at S4Studio.ErrorDialog.<>c__DisplayClass2_0.<Show>b__0(Object sender, RoutedEventArgs args) in \\mac\thes4studio\TheS4Studio\S4Studio\UI\ErrorDialog.xaml.cs:line 94
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.Controls.Primitives.ButtonBase.OnClick()
at System.Windows.Controls.Button.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
The Sims 4 Studio - Version 3.2.1.7
System.AggregateException: One or more errors occurred. (Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\ProgramData\S4Studio\Scripts\clipimporter.py", line 33, in <module>
mannequin_mesh = load_geom('geom', geom, {}, rig, mannequin_material)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\cas\blender.py", line 312, in load_geom
set_color(mesh,color_index,loop_index, create_color([c / 255.0 for c in vertex.colour[color_index]]))
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\blender\__init__.py", line 226, in set_color
mesh_data.color_attributes [color_index].data[loop].color_srgb = color
AttributeError: 'ByteColorAttributeValue' object has no attribute 'color_srgb'
changing mode from None to OBJECT select=None
Mode is now None
changing mode from None to OBJECT select=None
Mode is now None
changing mode from None to OBJECT select=None
Mode is now None
changing mode from None to EDIT select=<bpy_struct, Object("rig") at 0x00000210B822B908>
Mode is now EDIT
changing mode from EDIT to POSE select=<bpy_struct, Object("rig") at 0x00000210B822B908>
Mode is now POSE
changing mode from POSE to EDIT select=<bpy_struct, Object("rig") at 0x00000210B822B908>
Mode is now EDIT
changing mode from EDIT to EDIT select=None
Mode is now None
changing mode from None to OBJECT select=<bpy_struct, Object("rig") at 0x00000210B822B908>
Mode is now OBJECT
ROTATING mode= OBJECT active=<bpy_struct, Object("rig") at 0x00000210B822B908>
ROTATING mode= OBJECT active=<bpy_struct, Object("rig") at 0x00000210B822B908>
changing mode from OBJECT to POSE select=<bpy_struct, Object("rig") at 0x00000210B822B908>
Mode is now POSE
changing mode from OBJECT to OBJECT select=<bpy_struct, Object("geom") at 0x00000210B82D8108>
Blender quit
)
---> S4Studio.Blender.BlenderException: Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\ProgramData\S4Studio\Scripts\clipimporter.py", line 33, in <module>
mannequin_mesh = load_geom('geom', geom, {}, rig, mannequin_material)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\cas\blender.py", line 312, in load_geom
set_color(mesh,color_index,loop_index, create_color([c / 255.0 for c in vertex.colour[color_index]]))
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\blender\__init__.py", line 226, in set_color
mesh_data.color_attributes [color_index].data[loop].color_srgb = color
AttributeError: 'ByteColorAttributeValue' object has no attribute 'color_srgb'
changing mode from None to OBJECT select=None
Mode is now None
changing mode from None to OBJECT select=None
Mode is now None
changing mode from None to OBJECT select=None
Mode is now None
changing mode from None to EDIT select=<bpy_struct, Object("rig") at 0x00000210B822B908>
Mode is now EDIT
changing mode from EDIT to POSE select=<bpy_struct, Object("rig") at 0x00000210B822B908>
Mode is now POSE
changing mode from POSE to EDIT select=<bpy_struct, Object("rig") at 0x00000210B822B908>
Mode is now EDIT
changing mode from EDIT to EDIT select=None
Mode is now None
changing mode from None to OBJECT select=<bpy_struct, Object("rig") at 0x00000210B822B908>
Mode is now OBJECT
ROTATING mode= OBJECT active=<bpy_struct, Object("rig") at 0x00000210B822B908>
ROTATING mode= OBJECT active=<bpy_struct, Object("rig") at 0x00000210B822B908>
changing mode from OBJECT to POSE select=<bpy_struct, Object("rig") at 0x00000210B822B908>
Mode is now POSE
changing mode from OBJECT to OBJECT select=<bpy_struct, Object("geom") at 0x00000210B82D8108>
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.ExportClip(String custom_blend, String custom_clip, String mannequin_folder, String mannequin_texture, String rig_resource) in \\mac\thes4studio\TheS4Studio\S4Studio.Shared\BlenderUtilities.cs:line 441
at S4Studio.ViewModels.Animation.AnimationPackCustomContent.<>c__DisplayClass152_0.<DoExport>b__0() in \\mac\thes4studio\TheS4Studio\S4Studio.Shared\ViewModels\Animation\AnimationPackCustomContent.cs:line 945
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.Runtime.InteropServices.COMException (0x800401D0): OpenClipboard Failed (0x800401D0 (CLIPBRD_E_CANT_OPEN))
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode, IntPtr errorInfo)
at System.Windows.Clipboard.Flush()
at System.Windows.Clipboard.CriticalSetDataObject(Object data, Boolean copy)
at System.Windows.Clipboard.SetDataInternal(String format, Object data)
at System.Windows.Clipboard.SetText(String text, TextDataFormat format)
at System.Windows.Clipboard.SetText(String text)
at S4Studio.ErrorDialog.<>c__DisplayClass2_0.<Show>b__0(Object sender, RoutedEventArgs args) in \\mac\thes4studio\TheS4Studio\S4Studio\UI\ErrorDialog.xaml.cs:line 94
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.Controls.Primitives.ButtonBase.OnClick()
at System.Windows.Controls.Button.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)