Skip to main content
Participating Frequently
September 14, 2020
Answered

Collect Files - scriptable?

  • September 14, 2020
  • 3 replies
  • 2357 views

Hi everyone,

 

I'm working on an upload plugin to send an AE project and it's assets to another system.

 

Does anyone know if the "File -> Dependencies -> Collect Files..." funcitonality is accessible through ActionScript? I see the consolidateFootage() and reduceProject() methods available on the app.project object but don't know if Collect Files is exposed anywhere.

 

Any advice would be greatly appreciated.

 

Thanks!

 

Harry

This topic has been closed for replies.
Correct answer Mathias Moehl

As far as I know, it is not exposed to scripting, unfortunately. So as Mylenium suggested, you can execute the menu command, but this will only open the dialog. The only other - very tedious - option is to implement it yourself.

3 replies

Roland Kahlenberg
Legend
September 15, 2020

Exporting a MoGRT (from the Essential Graphics Panel) invokes the Collect Files routine - it's a 2-in-1 thingy. You end up with a MoGRT instead of an AEP. You can then open the MoGRT in AE. The only downside is that you won't be able to IMPORT the MoGRT into an existing AEP without first opening it and then resaving it as an AEP. You can of course do all of this prior to sending out the files and hence, only send an AEP. And MoGRT export is scriptable.

Very Advanced After Effects Training | Adaptive & Responsive Toolkits | Intelligent Design Assets (IDAs) | MoGraph Design System DEV
Mathias Moehl
Community Expert
Community Expert
September 15, 2020

Wow, that's a clever workaround, Roland!

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
Roland Kahlenberg
Legend
September 15, 2020

Only the BEST for you my friend. 🙂

Very Advanced After Effects Training | Adaptive & Responsive Toolkits | Intelligent Design Assets (IDAs) | MoGraph Design System DEV
Participating Frequently
September 14, 2020

Thanks Mylenium and Mathias, it seems you're both spot on, executing the below opens the dialog:

app.executeCommand(2482);

but I can't interact with it through code.

 

Thanks for the advice, time to look into relinking assets manually.

 

Harry 

Mylenium
Legend
September 14, 2020

The command itself may easily be scriptable through the executeMenuCommand() function, but I'm not certain if the various sub-options on the dialog panel can be set this way. This stuff tends to be rather inconsistent.

 

Mylenium

Mathias Moehl
Community Expert
Mathias MoehlCommunity ExpertCorrect answer
Community Expert
September 14, 2020

As far as I know, it is not exposed to scripting, unfortunately. So as Mylenium suggested, you can execute the menu command, but this will only open the dialog. The only other - very tedious - option is to implement it yourself.

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects