This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Credit to Ryan Porter (yantor3d) | |
from maya import cmds | |
for jnt in cmds.ls(sl=True, type="joint"): | |
matrixPlugs = cmds.listConnections(jnt + ".worldMatrix", type="skinCluster", p=True) or [] | |
for mp in matrixPlugs: | |
bindPreMatrixPlug = mp.replace('matrix', 'bindPreMatrix') | |
if cmds.listConnections(bindPreMatrixPlug, s=True, d=False): |