FORUMS: list search recent posts

After Effects Multiple Lines of Scripts

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Kape Mañego
After Effects Multiple Lines of Scripts
on Sep 18, 2017 at 5:25:02 am

Good day, Creative Cow!

How do I merge multiple script commands into a one single script file. For example, I want to convert the Audio Layer to keyframes, so I'll use this script:

app.executeCommand(app.findMenuCommandId("Convert Audio to Keyframes"));

Now I want to add expressions to the Left Channel, Right Channel and Both Channels (I still don't know the script but I already have a small clue in my mind), so I'll execute another script:

*script that adds expressions*

Now, how do I merge them all so that I can just save the script as a single JSX file and use it in the future? Thanks in advance :)

Return to posts index

Walter Soyka
Re: After Effects Multiple Lines of Scripts
on Sep 18, 2017 at 12:58:21 pm

Just put your code in the same .JSX script file.

If you're not already using the ExtendScript Toolkit, you can get it here:

Walter Soyka
Designer & Mad Scientist at Keen Live [link]
Motion Graphics, Widescreen Events, Presentation Design, and Consulting
@keenlive [twitter]   |   RenderBreak [blog]   |   Profile [LinkedIn]

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved