Last active
May 20, 2022 20:58
-
-
Save Dogydogsun/37dff871d0ffa5c7c5ffc0d44adcd2fe to your computer and use it in GitHub Desktop.
A short Maya script for transferring selected object transforms to their offset matrixes.
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
for sel in cmds.ls(sl=True): | |
getMatrix=cmds.xform(sel, query=True, matrix=True, worldSpace=True) | |
cmds.xform(ro=(0,0,0), t=(0,0,0), s=(1,1,1)) | |
cmds.setAttr(sel + ".offsetParentMatrix", getMatrix, type="matrix") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment