Import pose for selected bones only doesn't work for MHX rig

Issue #1822 resolved
Anon unkwon created an issue

Using Blender 4.0 Beta

Genesis Female 8.1 (tested with a complete standard character and pre morphed)

MHX rig

When importing a pose and selecting the “Selected Bones only” option (either fingers only, or even limbs only), the pose either doesn’t do anything or calls the following error:

Python: Traceback (most recent call last):
  File "C:\Users\redacted\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\Diffeomorphic-import_daz-08339995f0b8\error.py", line 223, in execute
    self.run(context)
  File "C:\Users\redacted\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\Diffeomorphic-import_daz-08339995f0b8\animation.py", line 1739, in run
    StandardAnimation.run(self, context)
  File "C:\Users\redacted\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\Diffeomorphic-import_daz-08339995f0b8\animation.py", line 1457, in run
    offset,prop = self.getSingleAnimation(filepath, context, offset)
  File "C:\Users\redacted\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\Diffeomorphic-import_daz-08339995f0b8\animation.py", line 829, in getSingleAnimation
    result = self.animateBones(context, nanims, offset, prop, filepath)
  File "C:\Users\redacted\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\Diffeomorphic-import_daz-08339995f0b8\animation.py", line 1110, in animateBones
    self.makeBoneFrame(bname, rig, bframe, tfm, n, offset, twists)
  File "C:\Users\redacted\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\Diffeomorphic-import_daz-08339995f0b8\animation.py", line 1134, in makeBoneFrame
    self.transformBone(rig, bname, tfm, n, offset, False)
  File "C:\Users\redacted\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\Diffeomorphic-import_daz-08339995f0b8\animation.py", line 1256, in transformBone
    if self.isAvailable(pb, rig):
  File "C:\Users\redacted\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\Diffeomorphic-import_daz-08339995f0b8\animation.py", line 982, in isAvailable
    for rlayer,blayer in zip(self.boneLayers, pb.bone.layers):
AttributeError: 'Bone' object has no attribute 'layers'

P.S.: Thanks to everyone working on the addon!

Comments (4)

  1. Log in to comment