I often have the problem that Kimera create some unique filenames, which ending sometimes in an unpredictable chaos for me.
It is nasty work to rename the files manually. First I have to change the name of the file in the .hrc-file, then I must change the name of the .rsd-file, after this I must open the .rsd-file and change the three names there and at last the p-file must be renamed, too.
So what I need, is a tool what can read out the .hrc and the .rsd files and rename all files at once.
Here an example;
The header file is AAAP.hrc and I want it to rename it AAAA.hrc. Lets say the first file it reads is AATH13, which is AATH13.rsd. AATH13.rsd is pointing to the file AATZ.p. To be honest this is a worst case scenario, if I add a part to the AATH13 bone I have no idea what new .rsd-file Kimera would generate
Though, after the rename it should look like the follow: AAAA.hrc -> AAAB.rsd -> AAAC.p. This looks much cleaner.
If the .hrc is pointing to two files for a bone: AATH13.rsd and AATH14.rsd, then the new should look like this: AAAB.rsd; AAAB1.rsd -> AAAC.p; AAAC1.p.
The rules for naming the files: the last letter follows from A to F. If the F is reached the letter before change to the next letter in the alphabet and the last letter is an A again (AAAF, then AABA). If the bone has more then one part, then file is builded like this: 'Name_of_the_first_part_of_the_bone' + 'a_Numeric' (starting from 1 to open end[?]). I guess that's it.
Should look in the end like this:
AAAA.hrc
AAAB.rsd
AAAC.p
AAAD.rsd
AAAE.p
AAAF.rsd; AAAF1.rsd; AAAF2.rsd
AABA.p; AABA1.p; AABA1.p
AABB.rsd
.
.
.
All what I want to do, is only to write the name of model and the tool is doing the rest for me.