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").
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.
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.
Copy link to clipboard
Copied
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"