Last active
December 19, 2015 04:39
-
-
Save dgovil/5898914 to your computer and use it in GitHub Desktop.
Copies all mesh scale X values to scale Z
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
import maya.cmds as mc | |
objList = mc.ls(sl=1) | |
objList = mc.listRelatives(objList,ad=1,typ="mesh") | |
objList = mc.listRelatives(objList,type='transform',p=True) | |
for obj in objList: | |
mc.setAttr(obj+".sz",mc.getAttr(obj+".sx")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment