Simply Maya User Community

Simply Maya User Community (https://simplymaya.com/forum/index.php)
-   Maya Basics & Newbie Lounge (https://simplymaya.com/forum/forumdisplay.php?f=31)
-   -   MEL transformation matrix? (https://simplymaya.com/forum/showthread.php?t=13352)

bestguy 03-09-2004 07:00 AM

MEL transformation matrix?
 
Hi,

New here and to MEL, hoping someone can assist.

I'm trying to explicitly set an object's transformation matrix in MEL, but I can't find any info on this... I see references to scale, rotate, etc. but nothing on setting the full matrix.

(I already have a matrix, so I want to avoid trying to compute the rotation, scale, etc. values to set those this way, if possible)

Am I missing something obvious, or is this not possible? 3ds, pov-ray, etc. all allow this, so I'd assume MEL does also.


Thanks!

bestguy 03-09-2004 09:58 PM

Answer
 
Got it:

setAttr -type "matrix" blah.xformMatrix 1 0 0 0 0 1 0 0 0 0 1 0 1 2 3 1;

etc.

kbrown 03-09-2004 11:12 PM

just out of curiosity what are you aiming at with this? :)

bestguy 04-09-2004 04:23 AM

Quote:

Originally posted by kbrown
just out of curiosity what are you aiming at with this? :)
Autogenerating MEL script for a school project, much easier to deal directly with xform matrices in my case.

Take care, g


All times are GMT. The time now is 11:32 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018