Introduction to Maya - Modeling Fundamentals Vol 2
This course will look in the fundamentals of modeling in Maya with an emphasis on creating good topology. It's aimed at people that have some modeling experience in Maya but are having trouble with complex objects.
# 1 03-09-2004 , 07:00 AM
bestguy's Avatar
Registered User
Join Date: Sep 2004
Posts: 3

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!

# 2 03-09-2004 , 09:58 PM
bestguy's Avatar
Registered User
Join Date: Sep 2004
Posts: 3

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.

# 3 03-09-2004 , 11:12 PM
kbrown's Avatar
Moderator
Join Date: Sep 2002
Location: London, UK
Posts: 3,198
just out of curiosity what are you aiming at with this? user added image


Kari
- My Website
- My IMDB

Do a lot, Fail a lot and Learn a lot!
# 4 04-09-2004 , 04:23 AM
bestguy's Avatar
Registered User
Join Date: Sep 2004
Posts: 3

Originally posted by kbrown
just out of curiosity what are you aiming at with this? user added image

Autogenerating MEL script for a school project, much easier to deal directly with xform matrices in my case.

Take care, g

Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads