Created
December 29, 2017 15:43
-
-
Save manhha00/f40f406a2e897fd13eeba64255d7a56e to your computer and use it in GitHub Desktop.
maya - mel - key object attr
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
string $sel[] = `ls -sl`; | |
string $attrList[]; | |
for ($current in $sel) | |
{ | |
$attrList = `listAttr -k $current`; | |
for ($attr in $attrList) | |
{ | |
int $keyCount = `keyframe -at $attr-query -kc $current`; | |
if ($keyCount > 0) | |
setKeyframe -at $attr $current; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment