align object to edge

align object to edge

Anonymous
Not applicable
10,193 Views
6 Replies
Message 1 of 7

align object to edge

Anonymous
Not applicable

I am looking to be able to align an object to the edge of another object. 

 

attatched diagram to show what i mean. 

0 Likes
Accepted solutions (1)
10,194 Views
6 Replies
Replies (6)
Message 2 of 7

keith112
Advocate
Advocate

Hi,

 

So I think I know what you mean by your picture. So in order to do this you need to set a temporary pivot point to help you out.

 

 

1) Select your object that you want to align and press insert. This will put you into pivot mode.

2) Place your pivot on the side of your object which needs to stay flush/attach to your edge.

3) Press insert again to exit pivot mode.

4) Select your geometry and you'll see the new pivot point you created in effect.

5) Select the Move Tool. 

6) Hold down "C" and MMB click on the edge. The geometry will snap to that edge.

7) Once you're done you can centre you pivot on your object.

 

Hope this helps.

0 Likes
Message 3 of 7

Anonymous
Not applicable

Yes this works to translate the object to the edge, although im looking to also make both edges parallel to one another. Rotating the object I want to move as well as translating it. 

 

Thanks,

Greg

0 Likes
Message 4 of 7

keith112
Advocate
Advocate

Okay so if you group the object will that work? Once you have the object in position and want them to move together, if you select both and hit ctrl+G they should be grouped as one. Selecting the group will let you then move them in rotation, translate and scale.

0 Likes
Message 5 of 7

Anonymous
Not applicable

Sorry I think you have misunderstood, probably my fault, poor explenation.

 

I have added a photo to try to help me explain better.

 

1 = The problem. 2 objects that need to be aligned with each other.

 

2 = what you originally suggested.

 

3 = my intended result. 

 

(I cant just make both of their global Y roations the same and then snap the edges together because the tranforms have been frozen and saved)

 

Thanks,

Greg

0 Likes
Message 6 of 7

Anonymous
Not applicable
Accepted solution

One of the official bonus tools serves this very purpose, specifically, in the bonus tools menu: /Modify/Orient mesh to Edge/Vert tool.

 

You can check how this works first in this video, by Steven Roselle:
https://www.youtube.com/watch?v=oofVnLDhtNA

The second example shown by M. Roselle, at 2:07, shows exactly what you're trying to achieve. You just can start by doing what keith suggested to "prepare", let's say, your object to rotate (ie:move its pivot, before using the tool).

 

hope this helps.

btw, the bonus tools is now a simple setup file, downloaded from autodesk, and it now installs without any headaches (no environmental variable or python path to set, as before), for Maya 2015 or 2016, and since there are more than a few very useful gems in there, there's no reason not to install them.

Message 7 of 7

Anonymous
Not applicable

Thank you!

0 Likes