Numbering files in groups of more than one...

Post any Bulk Rename Utility support requirements here. Open to all registered users.

Numbering files in groups of more than one...

Postby dkperez » Sun Jul 03, 2011 6:59 pm

I"ve looked through this forum, and I suspect the answer is in here somewhere, but I can't find it..........

I want to embed a number in each file, but INCREMENT the number ever n files.......

For example, I have a set of files:
5133_canada.NEF
5133_canada.xmp
5134_canada.NEF
5134_canada.xmp
5135_canada.NEF
5135_canada.xmp
5136_canada.NEF
5136_canada.xmp
5137_canada.NEF
5137_canada.xmp
5138_canada.NEF
5138_canada.xmp
5139_canada.NEF
5139_canada.xmp
5140_canada.NEF
5140_canada.xmp
5141_canada.NEF
5141_canada.xmp
5142_canada.NEF
5142_canada.xmp
5143_canada.NEF
5143_canada.xmp
5144_canada.NEF
5144_canada.xmp
5145_canada.NEF
5145_canada.xmp
5146_canada.NEF
5146_canada.xmp
5147_canada.NEF
5147_canada.xmp
5148_canada.NEF
5148_canada.xmp
5149_canada.NEF
5149_canada.xmp
5150_canada.NEF
5150_canada.xmp
5151_canada.NEF
5151_canada.xmp
5152_canada.NEF

Each set of three file pairs (a nef and an xmp is a pair) is a group, so 5133.nef through 5135.xmp should have "01" embedded......
The next set 5136.nef through 5138.xmp should have "02" embedded......

They should look like
5133_01_canada.NEF
5133_01_canada.xmp
5134_01_canada.NEF
5134_01_canada.xmp
5135_01_canada.NEF
5135_01_canada.xmp
5136_02_canada.NEF
5136_02_canada.xmp
5137_02_canada.NEF
5137_02_canada.xmp
5138_02_canada.NEF
5138_02_canada.xmp

and so on.....


Next time, my group may be 5 pairs instead of three, so I need a way to specify how many files should be each embedded number.

How do I do this?
dkperez
 
Posts: 2
Joined: Sun Jul 03, 2011 6:47 pm

Re: Numbering files in groups of more than one...

Postby dkperez » Thu Jul 14, 2011 12:34 am

Is there no answer for this, or is this place just this dead?
dkperez
 
Posts: 2
Joined: Sun Jul 03, 2011 6:47 pm

Re: Numbering files in groups of more than one...

Postby wessin » Wed Apr 29, 2015 9:32 pm

I'd also love to know if this is possible.
I'm trying to figure out how to append series numbers in groups of 5, or 8, etc, to a larger list of files, exactly as dkperez was asking. Is this possible to do in BRU?
wessin
 
Posts: 9
Joined: Wed May 09, 2012 9:54 pm

Re: Numbering files in groups of more than one...

Postby wessin » Mon May 04, 2015 8:04 pm

Is there any chance we can get a feature like this?
wessin
 
Posts: 9
Joined: Wed May 09, 2012 9:54 pm

Re: Numbering files in groups of more than one...

Postby Admin » Tue May 05, 2015 1:56 am

Can you rename by extension? e.g. first rename all extensions NEF, then xmp , etc.
Admin
Site Admin
 
Posts: 2350
Joined: Tue Mar 08, 2005 8:39 pm

Re: Numbering files in groups of more than one...

Postby wessin » Tue May 05, 2015 3:36 pm

In my particular scenario all the files have the same extension. I'm working with texture maps for 3D models, so the files are in varying numbers similar to this:

Wood plank surface 03.tga
Wood plank surface 03 Bump Map.tga
Wood plank surface 03 Ambient Occlusion Map.tga
Wood plank surface 03 Normal Map.tga
Wood plank surface 07.tga
Wood plank surface 07 Bump Map.tga
Wood plank surface 07 Ambient Occlusion Map.tga
Wood plank surface 07 Normal Map.tga
and so on..

Result should be

Wood plank surface 01.tga
Wood plank surface 01 Bump Map.tga
Wood plank surface 01 Ambient Occlusion Map.tga
Wood plank surface 01 Normal Map.tga
Wood plank surface 02.tga
Wood plank surface 02 Bump Map.tga
Wood plank surface 02 Ambient Occlusion Map.tga
Wood plank surface 02 Normal Map.tga
and so on..

I've figured out a way to do it using Libre Calc whereby I generate a directory list, paste it into a spreadsheet, and it generates a batch file which I can run to rename all the files in sequence. It works, but it's very clumsy. What I envisioned for BRU was an additional selection in "Numbering (10)" called "Groups" with a number selector.. Select "4" and it will number the selected files in groups of 4.. . 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 and so on.. Select "5" and it will number files in groups of 5, etc etc.
wessin
 
Posts: 9
Joined: Wed May 09, 2012 9:54 pm


Return to BRU Support