Error when attempting to Retarget Mesh Drivers

Issue #655 resolved
Zack Johnson created an issue

I use Retarget Mesh Drivers to apply existing JCMs to newly imported clothes on a character that I’ve already imported and Rigify’d with your Importer addon. For some reason I’m getting an error when I try to do it on this character… Any idea what’s going on?

Error: Python: Traceback (most recent call last):
  File "C:\Users\josep\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\Diffeomorphic-import_daz-11d82d4885bb\error.py", line 217, in execute
    self.run(context)
  File "C:\Users\josep\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\Diffeomorphic-import_daz-11d82d4885bb\driver.py", line 633, in run
    self.retargetRna(ob.data.shape_keys, rig)
  File "C:\Users\josep\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\Diffeomorphic-import_daz-11d82d4885bb\driver.py", line 648, in retargetRna
    min,max,cat = self.getOldData(trg, prop)
  File "C:\Users\josep\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\Diffeomorphic-import_daz-11d82d4885bb\driver.py", line 674, in getOldData
    cat = getMorphCategory(trg.id, prop)
  File "C:\Users\josep\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\Diffeomorphic-import_daz-11d82d4885bb\morphing.py", line 125, in getMorphCategory
    for cat in rig.DazMorphCats:
AttributeError: 'Armature' object has no attribute 'DazMorphCats'

location: <unknown location>:-1

Comments (2)

  1. Thomas Larsson repo owner

    I hadn’t used that tool for ages, and had actually forgotten about it. It doesn’t work with the new morph system so I removed it. There is a better way to add new clothes to an existing character: Change Armature + Transfer Shapekeys, cf https://diffeomorphic.blogspot.com/2021/07/changing-outfits.html. Since you rigified the body armature, you need to do the same thing with the clothes armatures before changing armature.

  2. Log in to comment