Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Selection Pivot

Selection Pivot

blakestone
Collaborator Collaborator
562 Views
3 Replies
Message 1 of 4

Selection Pivot

blakestone
Collaborator
Collaborator

I have spent the last few hours looking through the help file and can not find anywhere how to obtain the location of the selected vertices, edges, faces etc. pivot.

 

It clearly shows it in the following 2 locations (see attachment) however I'm not sure how to get these values?

0 Likes
563 Views
3 Replies
Replies (3)
Message 2 of 4

Steve_Curley
Mentor
Mentor
Good question. Can be done for an Editable Mesh - averageSelVertCenter < node > - but like you I can't find an equivalent for an Editable Poly. Probably one of those things which is blindingly obvious - once you've been told how to do it 😉

Max 2016 (SP1/EXT1)
Win7Pro x64 (SP1). i5-3570K @ 4.4GHz, 8Gb Ram, DX11.
nVidia GTX760 (2GB) (Driver 430.86).

0 Likes
Message 3 of 4

blakestone
Collaborator
Collaborator

Nice find, however a quick test and it does not appear to give the expected results (see attachment).

0 Likes
Message 4 of 4

Steve_Curley
Mentor
Mentor
Hmmm, I created a Plane, converted to Editable Mesh, selected 4 vertices and entered "averageSelVertCenter $" into the listener. Same values as were being displayed in the 3 spinners at the bottom of the Max window.
I just tried
 b = Box pos: (averageSelVertCenter $)
and it created a box whose pivot point agreed with the aforementioned "center" of the 4 selected vertices. "$" MUST be an Editable Mesh - that function returns undefined if it's an Editable Poly.

Still need to find an equivalent method of obtaining that information from an Editable Poly though 😞

Max 2016 (SP1/EXT1)
Win7Pro x64 (SP1). i5-3570K @ 4.4GHz, 8Gb Ram, DX11.
nVidia GTX760 (2GB) (Driver 430.86).

0 Likes