Skip to content

Instantly share code, notes, and snippets.

@dgovil
Last active December 19, 2015 04:39
Show Gist options
  • Save dgovil/5898914 to your computer and use it in GitHub Desktop.
Save dgovil/5898914 to your computer and use it in GitHub Desktop.
Copies all mesh scale X values to scale Z
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