Skip to content

Instantly share code, notes, and snippets.

@bonsak
Created August 9, 2018 20:16
Show Gist options
  • Select an option

  • Save bonsak/26d3d285db67e05def3c3d614c459cf0 to your computer and use it in GitHub Desktop.

Select an option

Save bonsak/26d3d285db67e05def3c3d614c459cf0 to your computer and use it in GitHub Desktop.
#This python script will start AE and run a jsx file in Documents when AE has started.
import subprocess, sys
app = 'C:/Program Files/Adobe/Adobe After Effects CC 2018/Support Files/AfterFX.exe'
subprocess.Popen([app, '-s', "var a = new File('C:/Users/bonsak/Documents/test.jsx'); a.open(); eval(a.read()); app.exitAfterLaunchAndEval = false;"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment