Execute other Script from an Automation

Thank you very much man, thats an awesome plugin you have here.
By any chance, does AT work with out scripts as well? Like we are using Void to generate Adjustment Layers as Shape Layers instead of the native Adjustment Layers.

My plan would be to generate to the splitted Alphas some VOID ALs already linked to the alphas. We could make shortcuts for Void and trigger those, but AT hasnt the ability to directly tell Void to generate stuff or?

Hi @gutster,

Thank you for your kind words! I’m glad you find Automation Toolkit awesome.

Regarding your question, Automation Toolkit can run JSX code, which means it can execute other After Effects scripts. To run JSX code in Automation Toolkit, you can add an action line and select “Project” followed by “Run JavaScript Code.” In the input text box, you can type the JSX code. However, please ensure that you have enabled the option to run external JavaScript code from the automation advanced settings.

*It’s very important to run javascript code only from trusted sources as it can run malicious code on your computer.

If the script you want to run is in JSXBIN format (encrypted text for code privacy and security), it will look something like this:


To run such a script, you need to format it like this and place it inside eval(""):


The text within eval("####") should be the script you want to run.

I researched the Void scripts and found that they offer a headless script designed for keyboard shortcuts. Theoretically, you should be able to copy the text from the JSX (or JSXBIN) files and run them from an automation.

However, I personally encountered errors when trying to execute the headless script outside of Automation Toolkit. If you are experiencing similar errors, I recommend reaching out to the developers of the Void scripts for assistance.

I hope this information helps! If you have any further questions or run into any issues, please let me know.


1 Like

Hi @gutster,

I have some great news! I was able to successfully run the Void headless script from an automation. I tried using an older version of the script (1.0.4 instead of 1.1.0) and it worked like a charm.

To achieve this, I created an automation that loads the script file as a file variable and uses it within a JavaScript code action line to run it. Make sure to follow these steps:

  1. On the first line, click on the folder icon and select the script file “Void-newVoid.jsx” from your computer.
  2. Run the automation.

Alternatively, you have the option to embed the script file directly inside the automation. This means the file will be saved within the automation itself, eliminating the need for the original script file. This can make sharing the automation easier without the need to distribute the script file separately. To embed the script file, follow these steps:

  1. Click on the “embedded file” option.
  2. Select the script file again.

Please note that I didn’t embed the script file with the automation because I don’t have permission to distribute it separately from the original owner.

You can download the automation file here: Void.json (4.6 KB)

I hope this solution works for you! If you encounter any issues, please don’t hesitate to let me know.


1 Like

Man you are a wizard. Thanks for helping out. That is amazing

1 Like

Hey @alonshemer

I have a additional question. We use this structure for our projects


I wanted to replicate that with one automation. So I split my Alpha PNGs, and every duplicated Layer gets a Void Variant Layer with the Track Matte enabled.

My problem is that I cant get the layering working, it either only creates one Void Layer, or it creates first the 3 alpha layers and than the Void layers. Also the Track Matte connection doesnt seem to work for me for some reason.

Can you maybe give me a direction how the this process could be done?