Constrain to axis script?

 From:  MarkRG (MARK_GRUNDON)
5259.1 
Hi,

I would like to set up a short cut key that constrains movement to one of the main axis when in the 3D view. For example: hold down 'x' while moving an object will constrain it to movement in just the x plain - if that makes sense? Other keys for y and z constraint would be handy too. I couldn't see anything like this in the scripts page.

M:-)