Skip to content

Instantly share code, notes, and snippets.

@deathponta
Created July 8, 2018 07:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deathponta/d7ba53b5a06e2d53a8e29a3805e6069e to your computer and use it in GitHub Desktop.
Save deathponta/d7ba53b5a06e2d53a8e29a3805e6069e to your computer and use it in GitHub Desktop.
スキニングされたメッシュ(transform)を選択して実行すると、バインドジョイントの選択セットを作成する
// スキニングされたメッシュ(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