How to center a object in the middle of another one?

General Moho topics.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
Asterix
Posts: 82
Joined: Sun Jul 03, 2011 12:48 pm
Location: Atlanta, GA

How to center a object in the middle of another one?

Post by Asterix »

How to center a object in the middle of another one?

Thanks
ASP 7.1
User avatar
slowtiger
Posts: 6298
Joined: Thu Feb 16, 2006 9:53 am
Location: Berlin, Germany
Contact:

Re: How to center a object in the middle of another one?

Post by slowtiger »

If you use the grid when creating both objects this is easy. If both objects are already created, it gets more complicated, since the grid only works for one layer (not layer independent). But you can easily create 2 crossing lines on a third layer and use this as a reference for both objects.
User avatar
Víctor Paredes
Site Admin
Posts: 5843
Joined: Tue Jan 25, 2005 3:18 pm
Location: Barcelona/Chile
Contact:

Re: How to center a object in the middle of another one?

Post by Víctor Paredes »

Genete wrote a script to align closed shapes. It's old and I don't know if it's working in current version, but you could try it.
viewtopic.php?t=8917
Image Image Image Image Image Image
Moho co-owner

Previously Rigged animation supervisor: My father's dragon, Wolfwalkers & Star Wars Visions "Screecher's Reach"
My personal Youtube Channel
User avatar
jezjones29
Posts: 339
Joined: Tue Jan 31, 2006 12:43 pm
Location: Wales, UK
Contact:

Re: How to center a object in the middle of another one?

Post by jezjones29 »

If the objects are on the same layer (vector), then I would simply select all the points (G) of the first object, then click on the Translate Points (T) tool and set the position of X and Y to 0, then do the same to the other object/s. This should align them all, then I can move the layer.

It they are on different layers, then I would set all the layers to X:0 and Y:0 and group them, and move the group.
Post Reply