PDA

View Full Version : Center a pivot using Maxscript?


Piv0t
02-24-2005, 12:08 PM
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!

ofer_z
02-24-2005, 12:12 PM
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

Piv0t
02-24-2005, 12:19 PM
Thanks!!! It works!

CGTalk Moderation
02-24-2006, 01:00 PM
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.