Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
I like my hotkeys and now I run out them. I do not like to move my left thumb away to far from alt button because I have to look at the keyboard to come back to it later. Lazy I know. I saw a cool function in Cinema4D Where you can map any keyboard keys as a modifier ( like alt, ctrl or shift) and I'm so glad that I can implement that in Maya (with slightly more work).
This script is just an example of what's possible with it. Endless.
Put the 2 scripts in your script folder and source it. Create 2 custom user hotkeys (name it "whateverYouWant_press" and "whateverYouWant_release"). Map "d" press to "whateverYouWant_press" and put this command: ft_dCustomMM(0); Map "d" release to "whateverYouWant_release" and put this command: ft_dCustomMM(1);
While you are still pressing "d": left mouse button you'll get a marking menu middle mouse button will still give you the default ctxEditMode
"f" is now toggle playback (ala alt + v) "s" is now go to min frame (ala alt + V)
Right, Left, Up And Down arrow are now Horizontal and Vertical 2D Pan in your viewport. "+" and "-" are now zoom in and out in your viewport. You can toggle or reset View 2D Pan tools from the marking menu above.
Of course, once you release "d" all the hotkeys back to normal ("f" for frame selected, "s" for setKeyAll, arrows for pickWalking) - Default or custom.