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(); |
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
/* | |
選択したキーの内、変化の無いキーだけを選択維持する | |
シーン内のアニメーションカーブを全選択 | |
select `ls -typ animCurve`; | |
size `ls -sl`; | |
*/ | |
proc SelectStaticKey_Exec(){ | |
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
/* | |
最後に選択したオブジェクトに位置・回転合わせを行う | |
複数オブジェクト対応 | |
*/ | |
proc ObjectAligner(){ | |
ObjectAligner_GUI(); | |
} |
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
/* | |
現在しているオブジェクトのアトリビュートエディタのコピーをちょっと楽にするスクリプト | |
*/ | |
// アトリビュートエディタ(AE)を表示 | |
ShowAttributeEditorOrChannelBox; | |
// AEをピーコ | |
copyAEWindow; |
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
/* | |
■ 機能 | |
・ボックスリグを追加する。 | |
・ボックスリグは2重構造になっており、制御するコントローラのトランスフォームは初期状態で移動回転Zeroとなる。 | |
・ボックスリグの位置・回転は、選択しているオブジェクトに合わせる。 | |
・複数選択で作成できる。 | |
・Pivotがズレている場合の対応はしていません。 | |
*/ | |
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
# 現在実行されているプロセスのCPUの関係設定を行います。 | |
# プロセス名を入力すると、そのプロセスは0コアを使用しなくなります。 | |
# 関係設定を変更したいプロセス名を入力 | |
$pName = "ShaderCompileWorker"; | |
# PCの論理コア数 | |
$coreCnt = (Get-WmiObject -Class Win32_Processor).NumberOfLogicalProcessors; |
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
/* | |
シーン内MotionTrailノードを削除 | |
手軽にモーショントレイルを作って確認した後に、全て一括で削除する時に便利 | |
モーショントレイルの作成と削除ボタンをシェルフに登録すると便利! | |
*/ |
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
/* | |
選択したオブジェクトの中から、カレントフレームにキーが無いオブジェクトを選択除外する | |
結果的に、カレントフレームにキーが有るオブジェクトだけが選択される | |
グラフエディタでキーフレームを選択している場合は、キーフレームが打たれているオブジェクトのみ選択される | |
■ 使い方 | |
キーフレームがあるフレームを、カレントフレームにして実行 | |
*/ |
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
/* | |
グラフエディタで選択したキーからオブジェクトを絞り込む | |
■ 使い方 | |
グラフエディターでキーフレームを選択して実行する | |
*/ | |
proc FilterObjFromSelectKey(){ | |
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
// 現在のシーンを開き直す | |
proc ReOpener(){ | |
$filePath = `file -q -sceneName`; | |
$result = `confirmDialog -title "確認" -message "開き直す?" | |
-button "あい" -button "いいえ" -defaultButton "あい" | |
-cancelButton "いいえ" -dismissString "いいえ"`; | |
if ($result == "あい") { |