Skip to content

[BUG] Rigbits: Lip rigger autoSkin not working. #533

@jitse-pe

Description

@jitse-pe

🐞 Bug Report

Description

When using the lips rigger, the auto skin creates a skin cluster using pm.skinCluster() this func returns a list: [<_Node 'skinClsEyelid'>]. However the autoskin code expects the object when it adds influences later in the code: skinCluster.addInfluence(jnt, weight=0).

error for reference:

# Traceback (most recent call last):
#   File "D:\MAYA_MODS\mgear_5.0.7\release\scripts\mgear\rigbits\facial_rigger\lips_rigger.py", line 1107, in build_rig
#     rig(**lib.get_settings_from_widget(self))
#   File "D:\MAYA_MODS\mgear_5.0.7\release\scripts\mgear\rigbits\facial_rigger\lips_rigger.py", line 802, in rig
#     skinCluster.addInfluence(jnt, weight=0)
#     ^^^^^^^^^^^^^^^^^^^^^^^^
# AttributeError: 'list' object has no attribute 'addInfluence'

Steps to Reproduce

  1. Use the liprigger and build the lip rig
    Image

Expected Behavior

Lips are build with the autoskin

Actual Behavior

You get the above mentioned error and the autoskin progress window gets stuck at 1%.

Maya Version

  • Maya Version: 2025
  • OS: Windows 11

mGear Version

  • mGear Version: 5.0.7

Error Log Formatting

If an error message appears, please provide the complete log:

# Traceback (most recent call last):
#   File "D:\MAYA_MODS\mgear_5.0.7\release\scripts\mgear\rigbits\facial_rigger\lips_rigger.py", line 1107, in build_rig
#     rig(**lib.get_settings_from_widget(self))
#   File "D:\MAYA_MODS\mgear_5.0.7\release\scripts\mgear\rigbits\facial_rigger\lips_rigger.py", line 802, in rig
#     skinCluster.addInfluence(jnt, weight=0)
#     ^^^^^^^^^^^^^^^^^^^^^^^^
# AttributeError: 'list' object has no attribute 'addInfluence'

Additional Context

I went into the code and fixed the issue locally by doing this:
mgear_5.0.7\release\scripts\mgear\rigbits\facial_rigger\lips_rigger.py line 785-791

        skinCluster = skin.getSkinCluster(objName)
        if not skinCluster:
            skinCluster = pm.skinCluster(head_joint,
                                         geo,
                                         tsb=True,
                                         nw=2,
                                         n='skinClsEyelid')[0]

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

5.2.0

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions