PDA

View Full Version : mel - control the rotations with a vector


thomas123
11-08-2003, 11:01 AM
I want to make a mel-script, that works a little bit like a aim-constraint
for example:
positionX, positionY, and positionZ are 0

the vektor is: <<1, 0, 0>> this is 0point ... rotations are (xyz) 0, 0, 0;

when vektor is <<0, 1, 0>> than it should rotate to 0, 0, 90; (RotateZ = 90)

when vector is <<1, 1, 0>> ---> 0, 0, 45 (RotateZ = 45)

Does anyone understand what I mean and now a solution?

thomas123
11-08-2003, 03:18 PM
you donīt have to answer, I already found it out ...
with vectors and than angle($vec1,$vec2);

CGTalk Moderation
01-16-2006, 02:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.