Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Attribute keyboard shortcuts for my script

  • Attribute keyboard shortcuts for my script

    Posted by Clara Martin on May 21, 2024 at 6:34 am

    Hello,

    To simplify my explanation I will take this example which resembles my case.

    I have a script for AE which contains 5 buttons, each button performing an action.

    Is it possible for each button (i.e. action) to assign a keyboard shortcut?

    Example:

    Button 1: ctrl + 1

    Button 2: ctrl + 2

    etc., etc

    Thank you in advance 🙂

    Clara Martin replied 1 year, 11 months ago 2 Members · 2 Replies
  • 2 Replies
  • Hector Vera

    May 21, 2024 at 7:50 pm

    Yes! It is quite possible to assign each of the buttons a keyboard shortcut. It supports the use of keyboard shortcuts to trigger specific actions you assign it to.

    To set a keyboard shortcut for an action that is assigned to a button, follow these steps:

    1. In AE, select the button whose action you want to assign a keyboard shortcut to.
    2. Right-click on the button and select “Properties” from the context menu.
    3. In the properties panel, navigate to the “Keyboard Shortcut” section.
    4. In the “Keyboard Shortcut” field, enter the keyboard shortcut you wish to use for the action.
    5. Click the “Add” button to add the keyboard shortcut to the list.
    6. Test the shortcut by pressing the key combination you assigned it. If it works, the action assigned to the button should be triggered and you have successfully implemented the action.

    I hope this helps! Let me know if you have any other questions.

  • Clara Martin

    June 3, 2024 at 11:48 am

    Thank you for your reply.

    After a lot of research/reflection on my part, the solution you gave is possible but implies for me to create 1 jsx file by keyboard shortcut, I will have to create more than 80 jsx files even though it is much simpler to manage the everything in the same file with functions to avoid redundancy as well as for future maintenance, working on 80 files will take time…

    Is it not possible from the After Effects keyboard shortcuts to call a function in my jsx file?

    Example:

    – Ctrl + 1 launches the function_a() function of my file “my_script.jsx”

    – Ctrl + 2 launches the function_b() function of my file “my_script.jsx”

    thanks in advance 🙂

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy