Notifications
Clear all
[Closed] Centering objects on single axis?
Aug 18, 2005 9:39 pm
Hi
I’m writing a series of centering macroscripts to speed up common centering tasks. So far I’ve done.
Center Object to World
Center Pivot to world
Center Pivot to Object
Center Pivot to Object/Center Object to World (in one script)
I want to write scripts for centering objects on single axis’ like center object to world on the x axis.
to center an object i use the line :
selection.pos = [0,0,0]
my problem is i’m having trouble only telling the object to go to one axis. i’m kind of a noob to maxscripting, so this might be really easy. Thanks in advance for any help.
Also here is my centering macroscripts if anyone wants them, i find them quite handy.
2 Replies
Aug 18, 2005 9:39 pm
selection.pos.x = 0 is probably what you want. Or
for i in selection do i.pos.x = 0
- Neil