Skip to main content
Mish_Herndz
Participant
December 14, 2021
Question

After Effects trying to app.executeCommand() a selected file

  • December 14, 2021
  • 1 reply
  • 947 views

hello community,

I'm trying to write a script where I could execute a app.executeCommand() to a specific file selected.

For example, if I want to "Apply Interpretation" | app.executeCommand(2255); to a selected clip or group of clips.

Please if anybody can help I would really appreciate it.
@Dan Ebberts 

This topic has been closed for replies.

1 reply

Dan Ebberts
Community Expert
Community Expert
December 14, 2021

I must not be understanding what you're asking, because if you have a group of clips selected in the project panel, I think that's all you need to do (assuming you have previously done Rember Interpolation):

 

app.executeCommand(2255);

Mish_Herndz
Participant
December 14, 2021

Yes, 

If I do a "Remember Inter..." then want to apply it to the files that had a specific extension. (Ex. .mp3 or .mov, etc.) using the app.executeCommand(), instead of selecting them one by one.

Lately, I've been working on projects that had a lot of files, and sometimes the settings are off. It's a pain to select them one by one instead of having them automated.

Dan Ebberts
Community Expert
Community Expert
December 14, 2021

OK, I'm still missing something. How does the script know which files to apply it to?