Maya Training

Introduction to Hard Surface Modeling

Maya Training

Interiors and Furniture Vol 1 & 2 - Modeling & Cloth

Maya Training

Shading, Lighting and Rendering the Bedroom in MR

Maya Training

Robot volume one - Modeling with animation in mind

Maya Training

Spach-Alspaugh House the complete courseware

Maya Training

Burt The Cartoon Dinosaur Vol 01 - Modeling

New Maya Training

Robot Volume 02 - Hybrid Rigging
You are here > Home > SimplyMaya Community Forums
Loading

Welcome to Simply Maya

Please Sign in or Sign up for an account

Member Login

Lost your password?

Not a member yet? Sign Up!

Old 03-09-2004, 08:00 AM   #1
bestguy
Registered User
 
bestguy's Avatar
 
Join Date: Sep 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Question 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 is offline   Reply With Quote
Old 03-09-2004, 10:58 PM   #2
bestguy
Registered User
 
bestguy's Avatar
 
Join Date: Sep 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Lightbulb 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.
bestguy is offline   Reply With Quote
Old 04-09-2004, 12:12 AM   #3
kbrown
Moderator
 
kbrown's Avatar
 
Join Date: Sep 2002
Location: London, UK
Posts: 3,198
Thanks: 0
Thanked 8 Times in 8 Posts
Default

just out of curiosity what are you aiming at with this?
__________________
Kari
- My Website
- My IMDB

Do a lot, Fail a lot and Learn a lot!
kbrown is offline   Reply With Quote
Old 04-09-2004, 05:23 AM   #4
bestguy
Registered User
 
bestguy's Avatar
 
Join Date: Sep 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
bestguy is offline   Reply With Quote
Reply


Similar Threads
Thread Thread Starter Forum Replies Last Post
MEL headache! happymat27 Members Lounge 5 05-12-2010 09:43 AM
MEL headache!! happymat27 Mel Scripts & Programming 1 03-12-2010 04:41 PM

Thread Tools





A little bit about who we are
Links you might find useful
Catch up with SimplyMaya
SimplyMaya specialises in Maya tutorials. We offer over 1,000 individual Maya training videos, ranging from basic Maya tutorials through to intermediate Maya tutorials. Our tutorials are created by instructors with industry experience and are designed to get you up and running in Maya quickly without making it seem like hard work.

Copyright © 1999-2015 SimplyMaya - vBulletin® Copyright © 2000-2015, Jelsoft Enterprises Ltd.