Created
July 8, 2018 07:14
-
-
Save deathponta/d7ba53b5a06e2d53a8e29a3805e6069e to your computer and use it in GitHub Desktop.
スキニングされたメッシュ(transform)を選択して実行すると、バインドジョイントの選択セットを作成する
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
// スキニングされたメッシュ(transform)を選択して実行すると、バインドジョイントの選択セットを作成する | |
proc CreateJointSetFromBindSkin(){ | |
string $shape[] = `listRelatives -s`; // shape 取得 | |
string $skinC[] = `listConnections -type skinCluster $shape[0]`; // skinCluster 取得 | |
string $bindJnts[] = `listConnections -type joint $skinC[0]`; // joint 取得 | |
sets -n "Set_bindJnts" $bindJnts; // セット作成 | |
} | |
CreateJointSetFromBindSkin(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment