Locking an Object
Maya 2012 Tutorial
How to Lock Object in Maya
Locking an object prevents you from accidentally moving your object as you work on the scene. You can lock objects individually or by layers (see Locking with Layers below).
Add a polygon cube to the workspace by choosing Create > Polygon Primitives > Cube.
Open the Channel Box and click-drag from TranslateX downward to select all the channels. All the channel names should be blue.
Right-click TranslateX and choose Lock Selected.
If you attempt to move the object with the Move tool (w key), the object remains static.
To unlock the object, select the object and open the Channel Box. With all the channels selected, choose Unlock Selected from the menu.
Locking with Layers
Another way to lock objects or groups of objects in Maya is to use Display Layers. You can place several objects on a Display Layer. By setting the layer to Reference, none of it's objects can be selected or moved. For more information, see topic, Layer Visibility and Locking Layers.