SimplyMaya Forums

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

Home / forum / Lounges / Maya Basics & Newbie Lounge / Pick up local coordinates
Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 24-07-2008, 01:30 AM   #1
barbe_bleue
Registered User
 
Join Date: Jul 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Pick up local coordinates

Hello,

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 03:53 AM.
barbe_bleue is offline   Reply With Quote
Old 24-07-2008, 02:55 AM   #2
publicFunction
Senior Software Developer
 
publicFunction's Avatar
 
Join Date: Jan 2005
Location: Livingston, Scotland
Posts: 1,701
Thanks: 1
Thanked 23 Times in 23 Posts
Default

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:

http://www.robthebloke.org/mel/DATA_mesh.html
__________________
Chris (formerly R@nSiD)
Twitter
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
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

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.