Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Animations can't be imported after bone renaming #129

Open
Brachi opened this issue Sep 8, 2024 · 0 comments
Open

Animations can't be imported after bone renaming #129

Brachi opened this issue Sep 8, 2024 · 0 comments
Labels

Comments

@Brachi
Copy link
Owner

Brachi commented Sep 8, 2024

Steps to reproduce (re5):

  1. Import model (e.g. pl0000.mod)
  2. Select armature and use Tools -> Autorename Bones
  3. Import lmt animation (e.g pl00action.lmt) and apply to already imported armature

Error report:

==================
Albam error report
==================

Blender version: 4.2.1
Albam version: 0.4.0.dev11
Operating System: Linux-6.10.7-arch1-1-x86_64-with-glibc2.40
Error: KeyError: 'bpy_prop_collection[key]: key "0" not found'
Traceback:
  File "******/.config/blender/4.2/scripts/addons/albam/blender_ui/import_panel.py", line 64, in execute
    self._execute(item, context)
  File "******/.config/blender/4.2/scripts/addons/albam/blender_ui/import_panel.py", line 73, in _execute
    bl_container = import_function(item, context)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "******/.config/blender/4.2/scripts/addons/albam/engines/mtfw/animation.py", line 46, in load_lmt
    bone_index = _get_or_create_root_motion_bone(armature)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "******/.config/blender/4.2/scripts/addons/albam/engines/mtfw/animation.py", line 244, in _get_or_create_root_motion_bone
    pose_bone = armature.pose.bones[ROOT_BONE_NAME]
                ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

1 participant