SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

Home / forum / Lounges / Maya Basics & Newbie Lounge / MEL transformation matrix?
Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 03-09-2004, 07: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, 09: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 03-09-2004, 11:12 PM   #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, 04:23 AM   #4
bestguy
Registered User
 
bestguy's Avatar
 
Join Date: Sep 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

« Previous Thread | Next Thread »

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

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

1 Month

$34

Month-to-month billing
$34/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
 
 

3 months

$87

Billing every 3 months
$29/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $5 per month or $15 in total compared to monthly billing with this package.

12 months

$288

Billing every 12 months
$24/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $10 per month or $120 in total compared to monthly billing with this package.

Your plan will automatically renew. You can cancel at any time via your PayPal account to avoid being charged again.

You can view the FAQ on our video plans here. You can contact us directly here. By clicking one of the buttons above, you agree to our Terms and Privacy Policy.