Unity・3DCG技術ブログ

TAもどきによるUnity・3DCGに関する記事をアップします。

MEL

MELサンプルその1

概要 MayaのMELのシンプルなサンプルスクリプト。 MEL string $toolCreate = "createTool"; string $toolName = "UI Tool"; if( `window -exists $toolCreate`) { deleteUI $toolCreate; } window -t $toolName -w 500 -h 500 $toolCreate; frameLayout -lab…

オブジェクトをミラー複製するMEL

概要 MayaのMELでオブジェクトを複製する。 使い方 下記をスクリプトエディタに貼り付け実行する。 // トランスフォームのフリーズ makeIdentity -apply true -t 1 -r 1 -s 1 -n 0 -pn 1; // pivotを原点に移動 string $objs[]=`ls -sl`; for ($obj in $objs…