Notifications
Clear all

[Closed] How to put group pivot into bottom

The example case is I have one group contain 2 object in one group , and I want to use the lowest part of the group as pivot point, I can use for example :


$group001.pivot = $group001.min 

the problem is sometimes it doesn’t update the location of the pivot,its stay at the center of the original location, especially when I first open max . The thing only update after I goto hierarchy —> press affect pivot only and release the mouse. Is there any way to make group pivot automatically on the bottom in maxscript without making hassle work like goto hierarchy thing ?

Thanks

2 Replies

To set node’s pivot to bottom center :

$.pivot = [$.center.x,$.center.y,$.min.z]

If you don’t see the pivot changing, this is because the display in the viewport is not set to “Use Pivot Point Center”. But pivot has been changed.

I don’t know yet how to change this display via maxscript (if it is possible).
You have to use max UI toolbar button to change the “Use Pivot Point Center”.
This button is located between “Reference Coordinate system” (local, view, screen, …) and “Select and manipulate” button.

I’m still interested to know the maxscript syntax for editing this pivot position display.

as was showed above:

grp.pivot = [grp.center.x, grp.center.y, grp.min.z]

where grp is GroupHead has always to work.

to change Coordinate center:
setCoordCenter <name> –(where name can be:#local, #selection, or #system)
or
[i]toolMode.pivotCenter/i
[i]toolMode.selectionCenter/i
[i]toolMode.transformCenter/i