Skip to main content
Gotta Dance
Inspiring
September 12, 2023
Question

Expression/Method for automatically naming a comp/project the file name?

  • September 12, 2023
  • 3 replies
  • 729 views

Hi Everybody,

 

Is there a script that automatically re-names a comp the name of the project? Like, before I even open the project? I don't want to have to use buttons or gizmos. I just want the initial comp in the bin to be the name of the projectFile.aep, like a relative template.

 

Thanks for any suggestions. 

This topic has been closed for replies.

3 replies

Gotta Dance
Inspiring
September 13, 2023

Cool, thanks guys! Isn't there a way to retrieve the project file name once the project is open? Then just name the comp in the top index the name of the file? 

 

Like I could have something in AE that when it opens it names thisComp to ... whatever, right? It can't go outside the scope of the project huh?

 

Mathias Moehl
Community Expert
Community Expert
September 14, 2023

As far as I know, there is no automatic way to trigger scripts when a new project is opened.

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
Gotta Dance
Inspiring
September 15, 2023

Cool, good to know. Thanks Mathias!

 

Mylenium
Legend
September 13, 2023
quote

Is there a script that automatically re-names a comp the name of the project? Like, before I even open the project? I don't want to have to use buttons or gizmos.

 

Impossible. The logic is just the reverse. AE cannot run a script permanently and track these changes. You have to use a startup script that sets the name or indeed create soem cutesy panel with a button.

 

Mylenium

Mathias Moehl
Community Expert
Community Expert
September 13, 2023

With this Automation Blocks workflow you can create new projects based on templates in one click:

 

This tool is part of Automation Blocks community library. Here is the direct link to the block code of the tool:

https://www.dropbox.com/scl/fo/pwxu3j0xo6fes83kw4sfx/h?rlkey=dz720ind3ih7wi3znxqm9gfg5&dl=0

Just download the xml file and copy it to your user library of Automation Blocks.

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
Mathias Moehl
Community Expert
Community Expert
September 13, 2023

... and since you are also asking for expressions: No expressions cannot change the name of a comp at all. Only scripts can do that - and they always need a manual trigger like a button.

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