Skip to content

Instantly share code, notes, and snippets.

@SEVEZ
Created July 14, 2016 12:51
Show Gist options
  • Save SEVEZ/1817ec3191ab2329c19d661eb45aba73 to your computer and use it in GitHub Desktop.
Save SEVEZ/1817ec3191ab2329c19d661eb45aba73 to your computer and use it in GitHub Desktop.
List blendshape targets in their order inside blendShape node
string $sels[] = `ls -sl`;
string $selsHistory[] = `listHistory $sels[0]`;
string $findBlend[] = `ls -typ blendShape $selsHistory`;
string $findWeights[] = `listAttr -m ($findBlend[0] + ".w")`;
int $k = 2;
for ( $s in $findWeights )
{
print ( $s + "\t" + $k + "\n" );
$k ++;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment