Introduction to Maya - Rendering in Arnold
This course will look at the fundamentals of rendering in Arnold. We'll go through the different light types available, cameras, shaders, Arnold's render settings and finally how to split an image into render passes (AOV's), before we then reassemble it i
# 1 24-07-2008 , 01:30 AM
Registered User
Join Date: Jul 2008
Posts: 1

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.
# 2 24-07-2008 , 02:55 AM
publicFunction's Avatar
Senior Software Developer
Join Date: Jan 2005
Location: Livingston, Scotland
Posts: 1,701
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:

https://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)
Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads