Home Website Youtube GitHub

mGear 5.4: Eye Rigger fails on Maya 2022 – AttributeError: module 'math' has no attribute 'dist'

Hi,

after updating to mGear 5.4 I get an error when building the eye rig with the Facial Rigger 3.0.

Environment

  • mGear 5.4
  • Maya 2022
  • Windows

Steps to reproduce

  1. Open Rigbits > Facial Rigger3.0
  2. Set up the Eye Rigger as usual
  3. Click Build

Error
Traceback (most recent call last):

File “…/mgear/rigbits/facial_rigger3/rigger_tab.py”, line 69, in build
return self.rigger.rig(**self.form.get_settings())

File “…/mgear/rigbits/facial_rigger3/eye.py”, line 66, in rig
return _rig(get_settings(**kwargs))

File “…/mgear/rigbits/facial_rigger3/eye.py”, line 86, in _rig
geometry = eyelid_solver.solve(settings)

File “…/mgear/core/facial/eyelid_solver.py”, line 194, in solve
elif _inner_first(first, last, positions, aim is not None):

File “…/mgear/core/facial/eyelid_solver.py”, line 96, in _inner_first
width = math.dist(positions[first], positions[last]) or 1.0

AttributeError: module ‘math’ has no attribute ‘dist’

Question: Is Maya 2022 still supportet?

Thanks for your help, and for all the great work on mGear!

Cheers, Christian