Skip to content

Instantly share code, notes, and snippets.

@jimfleming
Created October 1, 2013 03:39
Show Gist options
  • Save jimfleming/6773567 to your computer and use it in GitHub Desktop.
Save jimfleming/6773567 to your computer and use it in GitHub Desktop.
def unfreezeTransformations(selection):
originalCenter = cmds.getAttr('%s.center' % selection)[0]
cmds.move(originalCenter[0] * -1, originalCenter[1] * -1, originalCenter[2] * -1, selection, absolute=True)
cmds.makeIdentity(selection, apply=True, translate=1, rotate=1, scale=1, normal=0)
cmds.move(originalCenter[0], originalCenter[1], originalCenter[2], selection, absolute=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment