Skip to content

Instantly share code, notes, and snippets.

@manhha00
Created December 29, 2017 15:43
Show Gist options
  • Save manhha00/f40f406a2e897fd13eeba64255d7a56e to your computer and use it in GitHub Desktop.
Save manhha00/f40f406a2e897fd13eeba64255d7a56e to your computer and use it in GitHub Desktop.
maya - mel - key object attr
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