Selected to cursor on one axis I have a problem that I still haven't found an easy solution to, I have ways to handle it but it would be interesting to know how people handles this.

Basically I have a situation where I want to use snap->selection to cursor but only in one axis. This is (i believe) only of interest in object mode. so for example I would like to align the center of the active object in the image to the other cylinder's center. to do this I may for example set the cursor to selected for the second cylinder, then select the cylinder I want to align and go selection to cursor, (see picture).



However it will snap exactly to cursor and if I could I would use this a lot and snap to cursor in just one axis. Sorry I can't seem to make it more clear :P So I'll stop saying the same thing over and over and hope that someone both understand and can help me figure out either a different approach to it or a solution to it.

So what I typically do is to copy the axis value I want from 3D-cursor to Transform location:



Thanks!
Select the object you want to align, then the object on which you want to align, then, on the bottom menu of the 3D view, choose Object > Transform > Align Objects, and play with the options on the bottom of the T menu (example: choose the right axis)