Created
July 14, 2016 12:51
-
-
Save SEVEZ/1817ec3191ab2329c19d661eb45aba73 to your computer and use it in GitHub Desktop.
List blendshape targets in their order inside blendShape node
This file contains hidden or 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 $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