Notifications
Clear all

[Closed] Center a pivot using Maxscript?

Hi!
I want to make a shortcut for command “Affect Pivot Only -> Center to Object”, which cannot be done using standart customize UI tools.
Please provide a sample script for such procedure – I couldn’t find anything like it.

Thanks!

2 Replies

hi,

i’m not sure this is exactly the way “center to object” works, but it should do the job:

for o in selection do o.pivot = o.center

hOpe this helps,
o

Thanks!!! It works!