2010-08-20から1日間の記事一覧

MEL ウエイト調整ツール6 過去の作成したツールを追加しました。

string $window = `window -widthHeight 307 406`;setParent ..;showWindow $window;deleteUI -window $window; global proc SelOne(){string $OBJS_01= `ls -sl -fl`;select -r $OBJS_01[0];}; global proc SelSKN(){string $skins1= `ls -sl`;for( $skin1 …

MEL Zキーを押すと全てのファイルノードのテクスチャのリロードを行う。

global proc Reload1() { select `ls -type file`; string $selOBJ; string $selOBJS[]= `ls -sl`; for( $selOBJ in $selOBJS ) { AEfileTextureReloadCmd($selOBJ+".fileTextureName"); }; }; $hotKey1 = `nameCommand -annotation "Reload" -command "Relo…

MEL 選択オブジェクト位置にロケーター作成(複数化)

string $OBJS_01= `ls -sl`;for( $OBJ in $OBJS_01) { select -r $OBJ;float $obj =`xform -q -a -ws -t $OBJ`; CreateLocator; createPrimitive nullObject; spaceLocator -p $obj[0] $obj[1] $obj[2]; };

MEL 選択オブジョクト位置と回転値に拘束されたロケーター作成(複数化ジョイントなど)

string $OBJS_01= `ls -sl`;for( $OBJ in $OBJS_01) { select -r $OBJ;float $obj =`xform -q -a -ws -t $OBJ`; CreateLocator; createPrimitive nullObject; spaceLocator -p $obj[0] $obj[1] $obj[2]; setAttr ".rotatePivotX" $obj[0]; setAttr ".rotateP…

MEL 選択オブジョクトの面を裏返す

ConvertSelectionToFaces; ReversePolygonNormals;

MEL 選択オブジョクトのシェイプノード doubleSidedオン oppositeオフにする 

string $OBJ_01; string $OBJS_01[]= `ls -sl`; for($OBJ_01 in $OBJS_01); { setAttr ( $OBJ_01 + ".doubleSided")1; setAttr ( $OBJ_01 + ".opposite")0; };

MEL 左右対称コピースケールのみフリーズ、履歴削除しません。

group; xform -os -piv 0 0 0; makeIdentity -apply true -t 0 -r 0 -s 1 -n 0; string $selOBJS= `ls -sl`;duplicate -rr -un; scale -r -1 1 1; makeIdentity -apply true -t 0 -r 0 -s 1 -n 0; string $selg= `ls -sl`; select -cl ; select -r $selg; un…

MEL 6個まで追加選択後実行すると次は親の順で一つ一つ親子付けをし縦一列の階層構造をつくります。

string $SBJS[]= `ls -sl`;select -r $SBJS[0]; select -tgl $SBJS[1]; Parent; select -cl ;select -r $SBJS[1]; select -tgl $SBJS[2]; Parent; select -cl ;select -r $SBJS[2]; select -tgl $SBJS[3]; Parent; select -cl ;select -r $SBJS[3]; select -…

MEL 足首等の1ジョイントの回転フリーズ 足首のジョイントを選択し実行する 

string $H_01= `ls -sl`; PickWalkUp; string $H_02= `ls -sl`; PickWalkDown; PickWalkDown; string $H_03[]= `ls -sl`; select -r $H_01[0]; Unparent;select -r $H_03[0]; Unparent;select -r $H_01[0]; makeIdentity -apply true -t 0 -r 0 -s 0 -n 0 -j…

MEL 腰ルート等の1ジョイントの回転フリーズ

使用法は最初に腰ルートジョイントを選択 次に脚の付け根にあたるジョイントの片方を追加選択 次にもう片方の脚の付け根にあたるジョイントを追加選択 以上3ジョイント選択後、実行すると腰ルートジョイントのみ回転フリーズできます。ハンドルを動かす回転…