Reset image number ever X images

Advanced Renamer forum
#1 : 29/10-19 16:50
Vlad
Vlad
Posts: 1
I have multiple images shot from different angles in one folder. Each angle is exactly 24 frames so I would like the names to be FOLDERNAME-01-01 to FOLDERNAME-01-24. Then it would automatically go to FOLDERNAME-02-01 and all the way to FOLDERNAME-02-024 and so on. Is there any way of doing this without separating them into individual subfolders?


29/10-19 16:50
#2 : 30/10-19 13:44
David Lee
David Lee
Posts: 1125
Assuming that your files are correctly ordered in the List, you can use the following script:

folder = app.parseTags("<DirName:1>")
n = app.parseTags("<Inc NrDir:1>");
angle = Math.floor((n-1)/24 + 1);
frame = (n-1)%24 + 1;
return folder + "-" + ("0" + angle).slice(-2) + "-" + ("0" + frame).slice(-2);


30/10-19 13:44