Absolute World Pivot position

How can I get the values for the pivots active position.
For example.

I have a pivot with its pivot at 0,0,0.
When I select an edge in subobject mode the pivots position then changes to 0,10,0.

These values can be seen at the bottom of the main UI in the 3 spinners that display the active pivot position.
Is there any way I can get these values.
So if I have a selection of 4 verts the pivot is automatically the average position of all of them.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
JokerMartini's picture

What I am trying to get.

Example.
1.Create a box with height:5 width:5 length:5 at pos:[0,0,0]

2.Select 3 pivots on the heighest part of the box.
vert 1 pos:[2.5,2.5,5.0]
vert 2 pos:[2.5,-2.5,5.0]
vert 3 pos:[-2.5,-2.5,5.0]

3.Look at the main UI of Max at the bottom where it shows the pivots pos transform values.
The values should be as listed:
x:0.833333
y:-0.833333
z:5.0

I want that information listed above. The x,y,z.
If i try and run $.pos it returns 0,0,0 which is correct because its the objects transform location but its not pivots current location.
It should be = [0.833333,-0.833333,5.0]
The same goes for if edges or polygons are selected.

John Martini
Digital Artist
http://www.JokerMartini.com (new site)

JokerMartini's picture

It was still giving me the

It was still giving me the position of the objects pivot and not the current selections pivot.

John Martini
Digital Artist
http://www.JokerMartini.com (new site)

Graph's picture

i'd suggest working with the

i'd suggest working with the pivotMode prop.. that might help
i assume your using the $.pivot prop to get it?

Raphael 'Insanto' Steves
http://Graph.Net84.Net

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.