Recent mhx can not toggle parent toe for tarsal (toggle failed)

Issue #1099 resolved
engetudouiti created an issue

When try to toggle (change toe parent as tarsal) for G3F, it failed.

Error: Python: Traceback (most recent call last):
  File "C:\Users\TAKE\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\MHXrts\utils.py", line 195, in execute
    self.run(context)
  File "C:\Users\TAKE\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\MHXrts\fkik.py", line 718, in run
    self.toggle(context, "MhaToeTarsal_L", "L")
  File "C:\Users\TAKE\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\MHXrts\fkik.py", line 708, in toggle
    setattr(self.rig, prop, (not wason))
  File "C:\myprograms\Blender Foundation\blender-3.2.2-rc\3.2\scripts\modules\bpy_types.py", line 804, in __getattribute__
    return super().__getattribute__(attr)
AttributeError: 'MHX_OT_MhxToggleLeftToeTarsal' object has no attribute 'rig'

The reason was , in fkik.py 708

#setattr(self.rig, prop, (not wason)) "you need not self"
setattr(rig, prop, (not wason))

then it worked.. I still not test others… (just try to toggle tarsal ^^; )

Comments (4)

  1. engetudouiti reporter

    This problem still remain.. (though it can easy correct ^^; give mercy for G3 foot please..)

  2. Thomas Larsson repo owner

    Fixed in last commit. The buttons may be replaced by plain properites with update functions in the future, but not today.

  3. engetudouiti reporter

    please test it when you up-date parent tarsal function ^^; I keep to use it for all import G3 scene.(actually it can show more reliable shoes deform for most of case, so I do not apply high heel foot pose)

  4. Log in to comment