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 04-12-2008, 12:06 PM   #1
Dann
Registered User
 
Dann's Avatar
 
Join Date: Feb 2003
Location: Los Angeles
Posts: 695
Thanks: 0
Thanked 2 Times in 2 Posts
Default query world coords

Hey,

Can anyone help me figure out how to query the world space transform and rotational values of an object? I've looked all through the docs and just can't find it. Pivot points no problem, but I need rotation as well so that doesn't help me.

Thanks a bunch.

-tarmy
Dann is offline   Reply With Quote
Old 05-12-2008, 05:50 AM   #2
bendingiscool
Subscriber
 
bendingiscool's Avatar
 
Join Date: Jul 2006
Location: London
Posts: 567
Thanks: 0
Thanked 1 Time in 1 Post
Default

Use xform...

you can either store it in a float array or a vector like so..

///////////////////////

vector $translates = `xform -query -worldSpace -t name of object`;

///////////////////////

you can replace the t with an r for rotates.

Chris
bendingiscool is offline   Reply With Quote
Old 05-12-2008, 06:55 AM   #3
Dann
Registered User
 
Dann's Avatar
 
Join Date: Feb 2003
Location: Los Angeles
Posts: 695
Thanks: 0
Thanked 2 Times in 2 Posts
Default



exactly right. much obliged. (fyi... the rotate flag is -rt, but you got me close enough and I appreciate your help)
Dann is offline   Reply With Quote
Old 05-12-2008, 08:05 AM   #4
gster123
Moderator
 
gster123's Avatar
 
Join Date: May 2005
Location: Manchester Uk
Posts: 6,300
Thanks: 1
Thanked 51 Times in 45 Posts
Default

Yeah xforms the first port of call when doing anything to do with translations/rotiations
__________________
"No pressure, no diamonds" Thomas Carlyle
gster123 is offline   Reply With Quote

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.