Was looking in the wrong place. But I found the answer to my question, by searching under mel scripts, dannyngan website had a scirpt that works. I tried the simply maya one but couldnt get it to work.