Maya Training

Creating characters In Maya and Zbrush

Maya Training

Creating character renders in Maya 2017 and Arnold

Maya Training

Spach-Alspaugh House the complete courseware
You are here > Home > SimplyMaya Community Forums

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 24-07-2008, 02:30 AM   #1
Registered User
Join Date: Jul 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Pick up local coordinates


I've placed a locator in relation to an object of my scene (this object has its own coordinate system) and I would like to know how to pick up the coordinates of this object in the local coordinate system (not world coordinates).

I want to do that because I want then use these coordinates in a MEL program to place the locator in relation to the object whatever the position of the object is in the scene...

Thank you

EDIT : Orthography...

Last edited by barbe_bleue : 24-07-2008 at 04:53 AM.
barbe_bleue is offline   Reply With Quote
Old 24-07-2008, 03:55 AM   #2
Senior Software Developer
publicFunction's Avatar
Join Date: Jan 2005
Location: Livingston, Scotland
Posts: 1,701
Thanks: 1
Thanked 23 Times in 23 Posts

The center of the poly primitives is 0,0,0, but this will be reletive to the world co-ords with its origin on 0,0,0.

So if a cube 5,5,5 will have is local origin at 0,0,0 but in world it would be at 0,2.5,0. How to get MEL to pick this up would be getting the co-ords of the vertices. The cube would have 8 verts 4 top and 4 bottom each occupying its own space.

Enough theory... Have a look at this link:
Chris (formerly R@nSiD)
When the power of love overcomes the love of power the world will truely know peace - Jimmy Hendrix
Winner SM VFX Challenge 1
3rd Place SM SteamPunk Challenge (May 2007)
publicFunction 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-2017 SimplyMaya - vBulletin® Copyright © 2000-2017, Jelsoft Enterprises Ltd.