2010-07-28から1日間の記事一覧

MEL入門008 変数と配列ついて

変数について 簡単な例です。算数で下記のような式を習ったことがあると思います。A=1 B=3この場合A+B=4Aに1を代入、Bに3を代入する。変数とはこのAとBのように代入できるものです。上記内容をMELに置換え、スクリプトエディタで書くと //A=1 int $A=1;…

MEL locator1〜6位置にjoint1(親)〜6(子)を作成

float $jnt =`xform -q -ws -t locator1`; joint -p $jnt[0] $jnt[1] $jnt[2]; float $jnt =`xform -q -ws -t locator2`; joint -p $jnt[0] $jnt[1] $jnt[2]; joint -e -zso -oj xyz -sao yup joint1; parent -w |joint1|joint2 ; parent |joint2 |joint1 ; …