PDA

View Full Version : bounding box info


mradfo21
09-15-2010, 06:19 AM
Hey guys !

I'm a bit new to scripting, by we keep repeating this same process over and over and I want to come up with a way to solve it.

What we keep doing is selecting all the objects, moving them back to 0,0,0 world space, centering their pivots and moving the pivot to the very bottom of the object.

I'm struggling with one concept, the pivot point part. How would one figure out where the exact "bottom" of the object is?

Maya has an "exactWorldBoundingBox", which when assaigned to an object gives me a serioes of numbers, which i assume make up the verticies of this bounding box? is that correct?

for example:

[-3.0053306351401634, 1.6449949042413023, -2.5751458426125122, -1.005330754349453, 3.6449949042413023, -0.57514602142644655]

what does that represent?

Any insight into all this would be greatly appreciated.

NaughtyNathan
09-15-2010, 10:03 AM
Dude, these commands are documented in the MEL/Python command documents (Maya > Help > MEL/Python Command Reference). If you take a look at the docs for exactWorldBoundingBox it not only explains exactly what those values represent, but gives you example code of how to use it/them.

:nathaN

CGTalk Moderation
09-15-2010, 10:03 AM
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.