Dataclay — Automating Digital Production
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Register
    • Login

    Asset file rename on import

    Scheduled Pinned Locked Moved
    Templates
    2
    3
    439
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Mantasundefined
      Mantas
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • Jeffundefined
        Jeff
        last edited by

        @Mantas

        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.

        Thanks!

        Mantasundefined 1 Reply Last reply Reply Quote 0
        • Mantasundefined
          Mantas @Jeff
          last edited by

          @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.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post