BtnHook is an After Effects script for assigning keyboard shortcuts to buttons in other UI scripts. It has no separate interface; a text file identifies the target script and button.

Configure a button shortcut

The 0000_BtnHook.txt file uses three fields: ScriptName: identifies the script, ButtonName: identifies the button, and ButtonIndex: starts at 0 and selects an occurrence. It counts buttons with the specified name, or all buttons when ButtonName is blank. For an icon button, leave ButtonName blank but keep the tab after the field label. Enter an index even when the target is the only button.

Install and assign the shortcut

  1. Place 0000_BtnHook.jsx and 0000_BtnHook.txt in the After Effects scripts folder. For After Effects 2022, the guide lists C:\Program Files\Adobe\Adobe After Effects 2022\Support Files\Scripts on Windows and /Applications/Adobe After Effects 2022/Scripts/ScriptUI Panels on macOS; change the 2022 segment to match your installed version.
  2. According to the guide, Windows users should open Notepad as administrator to overwrite the file in the system scripts folder; on macOS, copy the file elsewhere, edit it, then paste it back. Use the text file to identify the target script and button.
  3. Run 0000_BtnHook.jsx from After Effects' File > Scripts menu to check the binding.
  4. In Edit > Keyboard Shortcuts, assign a shortcut to 0000_BtnHook.jsx.

The developer's English guide explains the configuration fields and setup. The 0000 prefix helps keep the script's menu order stable as other scripts are added. If you rename the JSX file, give its text file the same base name. You can copy the pair and rename it to create another shortcut binding.

Compatibility and limits

The product listing specifies After Effects 2020 through 2026. The target script's window or panel must be visible. BtnHook cannot hook extension or plugin buttons, and the developer does not guarantee that every script button can be assigned a shortcut. If you close and reopen a panel, the guide says to restart After Effects before using BtnHook again. More visible script panels and windows increase its search work and can slow shortcut response.

Pricing and license

The listing shows a suggested price of $9.99. Individual users may pay another amount; businesses and teams must pay the suggested price for a valid license. The EULA covers one copy for one user on one computer at a time. Additional users or copies require appropriate licenses.