5
$\begingroup$

I imported an OBJ from SweetHome3D to the latest version of Blender. When every object is selected (press A), I press "shift-S" to click "Selection -> To Grid". However, the single OBJ object will not move to the grid. I already have my camera positioned for the grid. I have never dealt with OBJ files; can I not move them?

Below is my car after applying SteveW's suggestion. The car is on the central grid (what ever you may call it), but it is broken. The grid is at the orange dot.

enter image description here

$\endgroup$
  • 1
    $\begingroup$ I have updated my answer with a more detailed explanation. :) $\endgroup$ – SteveW Jul 30 '13 at 4:27
  • $\begingroup$ @SteveW, Nice work! $\endgroup$ – Devyn Collier Johnson Jul 30 '13 at 14:09
2
$\begingroup$

After import, try this:

enter image description here

The object should appear in the center of your grid.

Update:

Note: The default Grid Floor (visible grid) is merely a 2D representation of a very small part of the actual grid, centered at the zero point (X=0, Y=0, Z=0).

When you Shift S > Selection to Grid, the selected object's origin ('center' point) will snap to the nearest grid division (a position in 3D space where all three (X,Y and Z) grid lines intersect). The object geometry (the visible object), will move with the origin, maintaining its position relative to the origin.

By default, the origin is normally in the center of an object. It is the rotation point and location, displayed here:

enter image description here

The geometry, and origin, of an object can be moved independently of each other, and this can be confusing because the origin gives you the location of the object, but the visible object (geometry) can be in a different location!

In your case, the imported .obj objects were not near the Grid Floor and Blender had no information about an origin, so it placed origins for all the objects at the zero point (which happens to be one of the points where all three grid lines intersect). And then, of course, with Shift S > Selection to Grid, nothing happened.

ideasman42 suggested: 'Origin to Geometry, then snap the objects to the grid', which works - but they were still not where you wanted them because they would have snapped to the nearest grid division. At this point, instead of Shift S > Selection to Grid, you could have used Shift S > Selection to Cursor (assuming the 3D Cursor was in the center).

According to what you said, I thought you only had one object, and so I suggested you use: Origin > Geometry to Origin, which would have worked perfectly but… :)

I hope this clarifies things a bit and isn't too confusing.

$\endgroup$
  • $\begingroup$ This works! However, the cars wheels and interior look like they have been in an accident (OoO), but technically I never asked how to move it in one functional piece. Therefore, this is the answer (^u^)! $\endgroup$ – Devyn Collier Johnson Jul 29 '13 at 10:47
  • 1
    $\begingroup$ @DevynCollierJohnson to move it in "one functional piece" use Origin to Geometry instead. $\endgroup$ – gandalf3 Jul 29 '13 at 19:01
  • $\begingroup$ @DevynCollierJohnson, This answer was purely to get your object to the center of your grid in the simplest way, as you seemed to be unaware of the '3D grid'. - ideasman42's answer (although correct), would have left the object in some place other than the grid center, and it appears you were having trouble finding it. $\endgroup$ – SteveW Jul 29 '13 at 23:23
  • $\begingroup$ Not sure this is the correct answer? - or its answering a different question, Origin to Geometry has nothing to do with the grid. $\endgroup$ – ideasman42 Jul 30 '13 at 8:13
  • $\begingroup$ @ideasman42, can you explain what you mean? $\endgroup$ – SteveW Jul 30 '13 at 9:43
5
$\begingroup$

Because its already snapped to the grid.

To explain: OBJ is a mesh-only format, therefor there is no object center. Just geometry and the object center is always (0, 0, 0), so there is no snapping to do.

To do what I think you're asking, you can have blender calculate a new origin (in the toolbox Origin -> Origin to Geometry), then you can snap the objects to the grid.

You may also want to split the mesh by loose parts before doing this though OBJ may be already split up, depending on the import options.

$\endgroup$
  • $\begingroup$ How is it already snapped to the grid? I may import a single piece of furniture and it would be very far away from the grid $\endgroup$ – Devyn Collier Johnson Jul 27 '13 at 10:18
  • 1
    $\begingroup$ @DevynCollierJohnson "OBJ is a mesh-only format, therefore there is no object center ... the object center is always (0, 0, 0), so there is no snapping to do." $\endgroup$ – iKlsR Jul 27 '13 at 16:51
  • $\begingroup$ The OBJ object is not on my grid like I want it to be. I must zoom out and try to find the object. Once I find the imported object, it will not move. It is stuck. How do I force it to go to the grid? $\endgroup$ – Devyn Collier Johnson Jul 27 '13 at 21:38
  • 1
    $\begingroup$ @DevynCollierJohnson by 'grid' do you mean the visible grid in the 3D View? - 'Selection to Grid' snaps the object to the nearest grid node in 3D space, and can be anywhere. $\endgroup$ – SteveW Jul 27 '13 at 22:56
  • $\begingroup$ @SteveW, Yes, I mean the visible grid. I never heard of grid nodes. $\endgroup$ – Devyn Collier Johnson Jul 27 '13 at 23:41

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.