Asset file rename on import
We are having some trouble with long file names that are used as assets in final comps.
It’s not about final video output name.
I’ve notice that for some reason Templater ads it’s own name on import with underscore like “3nebkMyGq_” before the original file name that is specified in Sheet. So thats why I am wondering, maybe we can specify our own custom file names for assets?
Is there a way to rename a video file or an image file upon import to After Effects compositions?
I’m trying to make custom file name that are imported from Google Sheet data source.
Tried out this function ?fileName=NEWNAME on a file link in Google Sheet, but with no luck.
If Templater is adding a prefix onto the asset name in the [TEMPLATER DOWNLOADS] folder, it’s most likely because the “Allow unique downloads for cloud-based assets” option is checked in the Templater Preferences panel.
This option is mainly used to create unique local copies of remote assets so that the same file isn’t overwritten every time it’s read by Templater. The text added to the beginning of the filename is randomly generated and can’t be designated within the software. However, if you’d like more direct control over the naming of assets, that option can be disabled.
As far as the question about renaming a file goes, this could be done with a feature of Templater Bot called Event Scripts. Event Scripts allow you to execute custom code at various points throughout the Templater process. Theoretically, it should be possible to rename an asset file based on what’s read in the Templater data source and then update the reference using an Event Script.
It would require a bit of development work, but from a conceptual level, I believe it would be possible. Hopefully, that clears things up, but if you have any other questions, please just let us know.
@jeff Thank you for clearing things up!
I was thinking the same, that the only way would be to go with Templater Bot Event Scripts.