For the cube shown I want to do a rotation on the cubes local z axis so that the cubes local x axis lies on the global xz plane.

  • $\begingroup$ Try to apply rotation on the cube (CTRL+A) $\endgroup$ – Alfonso Annarumma Sep 17 '14 at 8:57
  • $\begingroup$ Thanks for your answer Leon. I found a way to get the desired rotation using a LockedTrack constraint. The trick is to target an object that is 90 degrees to the plane you want to align to. Then apply visual transform. $\endgroup$ – Tom Berghuis Sep 18 '14 at 7:35
  1. Select the cube, Shift S > Cursor to Selected, choose 3D Cursor as current pivot point, or simply press . (the period key).

  2. Press Numpad 1, add a plane object, press F6 then toggle Align to View, in order to make it parallel to global XZ plane.

  3. Select the cube, then View > Align View > Align View to Active > Top (or simply press Shift Numpad 7), then add another plane object, toggle Align to View in F6 panel, as well.

  4. Keep current View unchanged, add an empty object, toggle Align to View in F6 panel, as well. G X X to move a certain distance along its local X axis.

  5. Add a Boolean modifier to either one of the plane, set Boolean mode to Intersect, choose another plane as the target object, in order to generate the intersection line from two planes.

  6. Enable Snap icon on 3D View header, choose Edge as snap element, and Active as snap target, first select the cube, then select the empty by holding Shift to make it active, R Z Z, move mouse over the intersection line generated in Step 3, until it is snapped, LMB or Enter to confirm. Finally, delete these extra objects.

| improve this answer | |
  • $\begingroup$ This is the non-coding way I've ever found so far, which is not hard, just need a bit more operations. I'll try make a GIF if necessary. $\endgroup$ – Leon Cheung Sep 17 '14 at 13:31

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.