UuuNyaa / blender_mmd_tools

MMD Tools is a blender addon for importing/exporting Models and Motions of MikuMikuDance.
GNU General Public License v3.0
2.27k stars 109 forks source link

Use Blender link features in mmd model cause a lot of error and lag. #176

Open PaulsonH opened 2 months ago

PaulsonH commented 2 months ago

I link my MMD model from file scenes to other scenes, But it keeps on showing thousands of errors in CMD like below

I turn off the MMD tool addon, the error will disappear.

It will show those error many times based on how many physical bone in your mmd model. image image

Traceback (most recent call last): AttributeError: 'Context' object has no attribute 'active_object' File "C:\Users\74091\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\mmd_tools\bpyutils.py", line 315, in get_active_object File "C:\Users\74091\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\mmd_tools\bpyutils.py", line 315, in get_active_object File "C:\Users\74091\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\mmd_tools\properties\root.py", line 195, in _getActiveJointObject File "C:\Users\74091\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\mmd_tools\properties\root.py", line 178, in _getActiveRigidbodyObject AttributeError: 'Context' object has no attribute 'active_object' File "C:\Users\74091\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\mmd_tools\properties\root.py", line 193, in _getActiveJointObject AttributeError: 'Context' object has no attribute 'active_object' File "C:\Users\74091\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\mmd_tools\properties\root.py", line 178, in _getActiveRigidbodyObject Traceback (most recent call last): return context.active_object active_obj = FnContext.get_active_object(context) Traceback (most recent call last): File "C:\Users\74091\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\mmd_tools\properties\root.py", line 195, in _getActiveJointObject ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\74091\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\mmd_tools\properties\root.py", line 180, in _getActiveRigidbodyObject return context.active_object Traceback (most recent call last): active_obj = FnContext.get_active_object(context) AttributeError: 'Context' object has no attribute 'active_object' File "C:\Users\74091\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\mmd_tools\properties\root.py", line 220, in _getActiveMeshObject File "C:\Users\74091\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\mmd_tools\bpyutils.py", line 315, in get_active_object WARNING:root:Object.select is deprecated since v4.0.0: Use Object.select_get() method instead Stack (most recent call last): File "C:\Users\74091\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\mmd_tools\properties\root.py", line 499, in get_select utils.warn_deprecation("Object.select", "v4.0.0", "Use Object.select_get() method instead") ^^^^^^^^^^^^^^^^^^^^^ Traceback (most recent call last): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ active_obj = FnContext.get_active_object(context) File "C:\Users\74091\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\mmd_tools\properties\root.py", line 222, in _getActiveMeshObject return context.active_object WARNING:root:Object.select is deprecated since v4.0.0: Use Object.select_get() method instead Stack (most recent call last): File "C:\Users\74091\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\mmd_tools\properties\root.py", line 499, in __get_select utils.warn_deprecation("Object.select", "v4.0.0", "Use Object.select_get() method instead") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\74091\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\mmd_tools\bpyutils.py", line 315, in get_active_object AttributeError: 'Context' object has no attribute 'active_object' File "C:\Users\74091\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\mmd_tools\properties\root.py", line 220, in _getActiveMeshObject File "C:\Users\74091\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\mmd_tools\bpyutils.py", line 315, in get_active_object active_obj = FnContext.get_active_object(context) ^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\74091\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\mmd_tools\properties\root.py", line 222, in _getActiveMeshObject ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ return context.active_object return context.active_object File "C:\Users\74091\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\mmd_tools\bpyutils.py", line 315, in get_active_object active_obj = FnContext.get_active_object(context) WARNING:root:Object.hide is deprecated since v4.0.0: Use Object.hide_get() method instead Stack (most recent call last): File "C:\Users\74091\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\mmd_tools\properties\root.py", line 509, in get_hide utils.warn_deprecation("Object.hide", "v4.0.0", "Use Object.hide_get() method instead") AttributeError: 'Context' object has no attribute 'active_object' File "C:\Users\74091\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\mmd_tools\properties\root.py", line 193, in _getActiveJointObject ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ return context.active_object File "C:\Users\74091\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\mmd_tools\bpyutils.py", line 315, in get_active_object WARNING:root:Object.hide is deprecated since v4.0.0: Use Object.hide_get() method instead Stack (most recent call last): File "C:\Users\74091\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\mmd_tools\properties\root.py", line 509, in __get_hide utils.warn_deprecation("Object.hide", "v4.0.0", "Use Object.hide_get() method instead") Traceback (most recent call last): ^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Context' object has no attribute 'active_object' File "C:\Users\74091\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\mmd_tools\properties\root.py", line 178, in _getActiveRigidbodyObject File "C:\Users\74091\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\mmd_tools\properties\root.py", line 222, in _getActiveMeshObject AttributeError: 'Context' object has no attribute 'active_object' File "C:\Users\74091\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\mmd_tools\properties\root.py", line 193, in _getActiveJointObject ^^^^^^^^^^^^^^^^^^^^^ Traceback (most recent call last): active_obj = FnContext.get_active_object(context) Traceback (most recent call last): AttributeError: 'Context' object has no attribute 'active_object' File "C:\Users\74091\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\mmd_tools\properties\root.py", line 180, in _getActiveRigidbodyObject ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\74091\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\mmd_tools\properties\root.py", line 195, in _getActiveJointObject File "C:\Users\74091\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\mmd_tools\properties\root.py", line 220, in _getActiveMeshObject Traceback (most recent call last): File "C:\Users\74091\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\mmd_tools\bpyutils.py", line 315, in get_active_object active_obj = FnContext.get_active_object(context)