Share

Python Editor custom keyboard shortcuts

MotionBuilder includes global keyboard shortcuts and Python Editor keyboard shortcuts. The global keyboard shortcuts are available anywhere from within MotionBuilder.

You can customize 13 Python Editor keyboard shortcuts so they call the Python code. The Python Editor keyboard mappings are listed in the PythonKeyboard.txt file located in the following default directories:

  • C:\Program Files\Autodesk\MotionBuilder Danko (64-bit)\bin\config\Python\Keyboard
  • C:\Program Files (x86)\Autodesk\MotionBuilder Danko (32-bit)\bin\config\Python\Keyboard

You can bind a keyboard shortcut to the execution of a script by modifying configuration files. A graphical editor for this file is provided with the KeyboardMapper.py script. The KeyboardMapper.py script is located in the following default directories:

  • C:\Program Files\Autodesk\MotionBuilder Danko (64-bit)\bin\config\Scripts\ComplexTools
  • C:\Program Files (x86)\Autodesk\MotionBuilder Danko (32-bit)\bin\config\Scripts\ComplexTools
Important:

A script needs to be bound to a keyboard shortcut that is not used. If it isn’t, MotionBuilder gives a warning message.

Was this information helpful?