• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Setting filenames for images sequences via scripting

Community Beginner ,
Jun 19, 2014 Jun 19, 2014

Copy link to clipboard

Copied

Is there a good way to set the output filename for a sequence via scriping? When I explicitly set the filename and render location, the frame number is being appended to the end of the extension. (example: "filename.png002").

TOPICS
Scripting

Views

375

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 19, 2014 Jun 19, 2014

Copy link to clipboard

Copied

So, adding [##] into my filename seems to put the numbers into the right place. I don't seem to have control over the number of leading zeroes or that there is an "_" before the number. I can work with this, but it's kinda frustrating to not be able to control how it works.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jun 19, 2014 Jun 19, 2014

Copy link to clipboard

Copied

Did a quick test.

You can set name the way you want "Comp 1-[#].jpg" - I mean if you add [#] by hand, AE seems to respect that.

So I guess you could check how many frames you are going to render and set appropriate amount of # signs in the file name.

Looking at your example, seems that AE ads frame number after the extension. In case you want to control where AE puts those frame numbers, try this "filename-[#].png" - that should do the trick.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jun 19, 2014 Jun 19, 2014

Copy link to clipboard

Copied

LATEST

You can simply use the template conventions provided in the file name dropdown arrow as well. "[compName]", "[fileExtension]", etc... If you use them as part of your string, you can keep control of where things are placed.

"myfileName_[xxxx].[fileExtension]" Will result in "myFileName_0000.png"

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines