「Convert Rotate to Vector or Vector to Rotate」の編集履歴(バックアップ)一覧はこちら
追加された行は緑色になります。
削除された行は赤色になります。
#highlight(c){{
string $obj = "aaa";
/* get Matrix */
float $m[] = `xform -q -ws -matrix $obj`;
/* convert to vector */
float $p[] = {0,1,0};
return pointMatrixMult($p, $m);
}}
Convert to Vector.
#highlight(c){{
string $obj = "aaa";
/* get Matrix */
float $m[] = `xform -q -ws -matrix $obj`;
/* convert to vector */
float $p[] = {0,1,0};
return pointMatrixMult($p, $m);
}}
Vector to Rotate. Check below url.
[[Align Y Axis to Vector>http://www.fundza.com/mel/axis_to_vector/align_axis_to_vector.html]]