Here ya go. It'll take the last command that Maya placed in the Recent Command List and let you assign a hotkey to it (via pressing enter/return in the textfield). The top menu bar text will let you know what that command is called before you assign a key, and a warning will pop up if you try to overwrite an existing…
Necro bump. Just went back and updated this script so it'd work correctly with newer versions of maya: //RepeatLast Hotkeyer v2if (`window -exists rlHotkey`) deleteUI rlHotkey;window -wh 250 50 -mxb 0 -title "RepeatLast Hotkeyer" rlHotkey;frameLayout -bs "etchedOut" -w 200 -cll 0 -l "Enter Hotkey";formLayout selForm;…