If anyone wants to have this in Maya I've created small script that does same. I've tested it only in Maya 2012, but it should work everywhere. You can just paste contents of .py file into Script Editor (PYTHON tab) and run, or you can follow README how to make script more permanent on you shelf.…