PDA

View Full Version : I can't store a vector resulting from a command


Mayan-Seraph
09-08-2006, 08:39 PM
I used the rot command to rotate a point about a vector, and then wanted to print the result.

All I did was this,

vector $tyy = rot <<1,1,1>> <<1,0,0>> 1;
print $tyy;

and it just didn't work. Maya won't eat it. Even if I add brackets around the entire command it's result won't be recognized as a simple vector.

So my question is, how can I store the result of my rot command?

MichaelDarkAngel
09-08-2006, 10:51 PM
This worked in the script editor for me

vector $tyy = rot(<<1,1,1>>, <<1,0,0>>, 1);
print($tyy);

Result:
1 -0.301169 1.381773



HTH,

MDA

Mayan-Seraph
09-09-2006, 02:30 AM
Alright, it's working, so it was just a few commas :/ Thanks a lot

CGTalk Moderation
09-09-2006, 02:30 AM
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.