0
$\begingroup$

Snap

As you can see, I'm trying to put this object into the opening below it. Is there a quick and easy way to do this? The top model is not rotated exactly correctly to match the opening, although the model is exactly the right size so if it were matching orientation it would fit. I'm looking for a way that I can sort of 'click' the top one into it and it will adjust accordingly.

$\endgroup$
  • $\begingroup$ I can't really see the problem very well in your screenshot.. Are you looking for something like this? $\endgroup$ – gandalf3 Feb 7 '14 at 8:04
  • $\begingroup$ Basically, I am trying to take this and put it into this hole. The aren't aligned exactly via rotation but the opening is the same size as the edge of the model so it should fit if rotated correctly, which I'm looking for a way to do automatically. $\endgroup$ – Dustuu Feb 7 '14 at 8:24
  • $\begingroup$ AFAIK, this is not possible. Would to work to get it positioned as close as possible, and then join the objects and remove double vertices to connect them? (They could be separated again afterwards) $\endgroup$ – gandalf3 Feb 7 '14 at 8:34
  • $\begingroup$ Huh, I hadn't thought of that. Getting them close together then merge close verticies. It wouldn't be perfect, but it won't really matter in the long run! I'll post back with results. $\endgroup$ – Dustuu Feb 7 '14 at 8:45
  • $\begingroup$ I think it is possible, if the only differences for the border are about rotation, position, and/or scale. Here for your reference. $\endgroup$ – Leon Cheung Feb 7 '14 at 13:13
2
$\begingroup$

If it's only about location and rotation around the Z axis, it should be as simple as:

  1. Select the object you wanna align
  2. Go to Editmode Tab
  3. Select all A
  4. Make sure you are in Vertex Select mode CtrlTab
  5. Hold Shift and click a vertex twice, which you wanna use to align location
    (makes it the active vertex)
  6. Enable Snapping ShiftTab
  7. Make it snap to vertices CtrlShiftTab
  8. Set Snap Target to Active
  9. Grab your object G and snap it to the other model's corresponding vetex
  10. Snap Cursor to Active ShiftS
  11. Change Pivot Point to 3D Cursor .
  12. Hold Shift and click a vertex twice, which you wanna use to lineup rotation
    (make it active)
  13. Rotate the model R, constrain to Z axis and snap your vertex to the corresponding vertex of the other model
    (this can be really tricky, try to make the models a bit transparent to see what you are snapping to)

Not sure if the vertex in step 12 needs to have the same Z location as the first vertex... But even then, it should be possible to use any vertex with a bit more effort, to be able to constrain the right rotation axis in step 13 - using a custom transform orientation, which you would have to set up first...

If the models did not align originally, you might be able to snap to edge instead in step 13...

$\endgroup$
  • $\begingroup$ If the OP doesn't care about changing the position of origin, this would be fine. $\endgroup$ – Leon Cheung Feb 7 '14 at 15:52
  • $\begingroup$ Oh right, didn't think about that... but vertex snapping for active vert seems to work in editmode only. Maybe use a script to correct origin afterwards? $\endgroup$ – CoDEmanX Feb 7 '14 at 16:41
  • 3
    $\begingroup$ I would suggest to snap 3D cursor to one vertex first, then add a new empty; Select the object first, then the empty, thus it can work in object mode, since empty snapping can be treated like vertex. $\endgroup$ – Leon Cheung Feb 7 '14 at 17:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.