Page MenuHomeFeedback Tracker

1.2.1 Rig Updater script failing
New, NormalPublic

Description

When using the rig updater on .blend files for weapon animations, the Rig Updater is crashing for the following reasons:

1) For projects made before patch 1.2.0:
Traceback (most recent call last):
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\EnfusionBlenderTools\txa\operators.py", line 336, in invoke
    return self.execute(context)
           ^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\EnfusionBlenderTools\txa\operators.py", line 239, in execute
    constraints_list.append([bone_constraint, bone_constraint.target.name])
                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'name'
Error: Python: Traceback (most recent call last):
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\EnfusionBlenderTools\txa\operators.py", line 336, in invoke
    return self.execute(context)
           ^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\EnfusionBlenderTools\txa\operators.py", line 239, in execute
    constraints_list.append([bone_constraint, bone_constraint.target.name])
                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'name'

I have not found a workaround for this yet.

2) For projects made between patches 1.2.0 and 1.2.1:
Python: Traceback (most recent call last):
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\EnfusionBlenderTools\txa\operators.py", line 336, in invoke
    return self.execute(context)
           ^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\EnfusionBlenderTools\txa\operators.py", line 277, in execute
    copy_animation_data("rig_clone","rig")
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\EnfusionBlenderTools\txa\utils.py", line 181, in copy_animation_data
    source_action_strip.action.name,
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'name'

I was able to work around this issue by deleting every NLA strip from my project and then the Rig Updater worked successfully.

Notes:
  • Using Blender 4.2.5 LTS
  • EBT and Rig Updater up-to-date
  • All of my .blend files started from SampleWeapon_01_Animations.blend
  • Other modders in the Discord (#enfusion_animation) have also reported issues with the Rig Updater script failing.

Details

Severity
Block
Resolution
Open
Reproducibility
Always
Operating System
Windows 11 x64
Category
General
Steps To Reproduce
  1. Open old .blend file
  1. Press Rig Updater button
Additional Information

I can provide my .blend files privately if needed. I have tried modifying the python script to skip None values, but I can't figure out how to get blender to run the script with my changes, so any local fix advice would be helpful until this gets worked out. I have hundreds of animations to re-import, so this is a major blocker.

Event Timeline

Also, somewhat related. It seems the rig updater resets the inverse (offset) of every bone constraint.