PDA

View Full Version : 3D MAX QUESTION: Absolute Location with MAXScript


Kanno
04-17-2007, 12:48 AM
Say I have a box (or point or anything) with it's position located at the origin (0,0,0)

If I move this box using a deformer, which does not change its location in world space, can I write a script to get it's ACTUAL location, or the location of any of its vertices?

Example:
I create a box at (0,0,0) and apply a surface deformer to it, moving it 20 units. If I were to look at the box's "location" it still says that it is at (0,0,0). But I want to find a way for it to tell me that it is actually at (20,0,0). Even if this requires a hack like finding the locations of one of it's vertices..

Sorry if I'm nto making sense. Any help muchly appreciated!

martinez
04-20-2007, 10:52 AM
http://forums.cgsociety.org/showthread.php?f=54&t=486331

PEN
04-23-2007, 06:00 PM
You can get the center of the object using $.center. This will be the center of the bounding box. Using $.min and $.max you can get the min and Max values as well.

Best to ask max script questions in the Max script foum how ever.

CGTalk Moderation
04-23-2007, 06:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.