Skip to content

Instantly share code, notes, and snippets.

@ddv0504
ddv0504 / check_max_influences.py
Created August 26, 2021 09:51 — forked from chris-lesage/check_max_influences.py
Check skinClusters for too many influences per vertex in Autodesk Maya.
import maya.OpenMaya as OpenMaya
import pymel.core as pm
import maya.OpenMayaAnim as OpenMayaAnim
import maya.cmds as cmds
import maya.mel as mel
class checkMaxSkinInfluences(object):
''' This script takes a mesh with a skinCluster and checks it for N skin weights.
If it has more than N, it selects the verts, so you can edit them.