0
$\begingroup$

How to position an object to the centre of camera’s viewport in the scene (for example position camera wherever you want and toggle preview of it by pressing NUMPAD 0). So basically position object to the centre relative to the preview camera viewport. Thanks.

$\endgroup$
3
  • $\begingroup$ Could you clarify what is crosshair mesh? And what do you mean by "camera viewport"? Center of world (global) coordinates is 0,0,0 where you can put 3D cursor with Shift+S > Cursor to center $\endgroup$ – Mr Zak Nov 28 '17 at 13:51
  • $\begingroup$ please clarify. you can use align camera to view.... or align active camera to selected.... or many other options... $\endgroup$ – yhoyo Nov 28 '17 at 13:54
  • $\begingroup$ edited, should be clearer now $\endgroup$ – kepler425b Nov 28 '17 at 22:32
3
$\begingroup$

This method centers the object's origin in the camera viewport. If you want to center the geometry position its origin at the center of mass first.⎈ Ctrl⇧ Shift⎇ AltS

The green circle indicates the desired position. The plane (perpendicular to the camera) indicates where the object is supposed to move.

enter image description here

  1. Add a helper object (an empty) at the objects position.
    RMB RMBselect the object.
    ⇧ ShiftS > Cursor to selected.
    ⇧ ShiftA > Empty.
    enter image description here

  2. RMB RMB select the camera. ⇧ ShiftRMB RMB select the empty. Add a Copy Rotation constraint to the empty by pressing ⎈ Ctrl⇧ ShiftC > Copy Rotation.
    enter image description here

  3. Snap the cursor to the camera.
    Cursor at camera.
  4. Set the Pivot Point to 3D Cursor.
    enter image description here
  5. RMB RMB select the empty and scale it to zero along its local XY plane.
    S > ⇧ ShiftZ > ⇧ ShiftZ > 0
    enter image description here
  6. Snap the cursor the the empty, then the object to the cursor.
    enter image description here
$\endgroup$
1
  • 2
    $\begingroup$ Thats clever, and also a pain in the neck :D $\endgroup$ – 3pointedit Nov 29 '17 at 1:04

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.