Skip to content

Instantly share code, notes, and snippets.

@EricTRocks
EricTRocks / UpdateJointBindPose.py
Created July 21, 2016 00:24
Updates selected Maya joint's bind pose Credit to Ryan Porter (yantor3d)
# 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):