FlailingFog / KK-Blender-Porter-Pack

Plugin pack for exporting Koikatsu characters to Blender.
305 stars 28 forks source link

Create animation library cannot import animations #497

Closed videoman614 closed 5 months ago

videoman614 commented 6 months ago

This feature in the KKBP extra's panel seems to be broken currently.

Importing a new model with the Rigify armature works normally as far as I can tell however the resulting armature is named Armature not RIG-Armature which the create animation library demands, giving this error.

Python: Traceback (most recent call last):
  File "/home/desktop/.config/blender/3.6/scripts/addons/KK-Blender-Porter-Pack-master/extras/animationlibrary/createanimationlibrary.py", line 438, in execute
    main(self.directory)
  File "/home/desktop/.config/blender/3.6/scripts/addons/KK-Blender-Porter-Pack-master/extras/animationlibrary/createanimationlibrary.py", line 53, in main
    rigify_armature = bpy.data.objects['RIG-Armature']
KeyError: 'bpy_prop_collection[key]: key "RIG-Armature" not found'

This can be easily fixed though, however after renaming Armature to RIG-Armature, it produces this error.

Python: Traceback (most recent call last):
  File "/home/desktop/.config/blender/3.6/scripts/addons/KK-Blender-Porter-Pack-master/extras/animationlibrary/createanimationlibrary.py", line 438, in execute
    main(self.directory)
  File "/home/desktop/.config/blender/3.6/scripts/addons/KK-Blender-Porter-Pack-master/extras/animationlibrary/createanimationlibrary.py", line 59, in main
    rigify_armature.pose.bones["Right arm_parent"]["IK_FK"] = 1
KeyError: 'bpy_prop_collection[key]: key "Right arm_parent" not found'

This is using the latest master commit 1b8ebb9 and can be observed with the default character.

Potential issues is this is done in a Linux environment however blender and python is platform agnostic so this shouldn't be an issue, I'll attach the animations I tested to see if it's my system that is the cause of the error.

animations.zip