• Bugs
  • Need leading zeros when export png sequence

Hi,

I need leading zeros when I export a png sequence.
For example: If I have 300 png files in a folder, the numeration of the png files start with 1 instead of 001.

We will use the png sequence in a program called "vvvv" and without leading zeros this messes up the order when you later need to pack the sequence.

Is there an easy way to fix this?

Kind regards!

Related Discussions
...

Hi! this suggestion is already on our to-do list here: Export improvements · #11 · EsotericSoftware/spine-editor

Zero padding for numbers in image file names.

but for now what I can suggest to quickly fix this is using a program such as RegexRenamer https://sourceforge.net/projects/regexrenamer/?source=typ_redirect
and run these two formulas in your export folder:

  1. find: raptor-walk_(\d\D) (where raptor-walk_ is the name of your exported animation sequence and (\d\D) matches a digit and a non digit sign, so that only numbers from 0-9 get selected)
    replace: raptor-walk_0$1 (where $1 takes what is put between parenthesis in the search field)

  1. find: raptor-walk_(\d\d\D) (to match two digits numbers)
    replace again with: raptor-walk_0$1

and this operation will take less than a minute (:

7 dias depois

Thank you Erikari!