Renaming RAW-files across version set

Post Reply
Hondor
Posts: 99
Joined: 05 Jul 14 14:52

Renaming RAW-files across version set

Post by Hondor »

Apologies, if the answer to my questions is already given somewhere on this site, but I cannot locate it.

Of possibly importance: I have remained on version 3. It seems to cover my needs fine, and I really like the old interface :D

I usually work in folder view on converted DNG's, but I have always saved my original RAW-files (mainly CR2 + RW2). Recently I've imported my RAW's into PSU (keeping them in their separate folders) and added them to my DNG's as version sets.

I often rearrange and rename my DNG's (they are of the form (YYYY-nnn, meaning e.g 2015-001, 2015-002 and so on). Often I will add a photo, which for chronological reasons should be interpolated and necessitate a renumbering of the whole folder.

Now, I'd really like to automagically rename my corresponding RAW's so they match the naming of their DNG equivalents in the version sets. I can't simply use the renaming option, since I won't always have one RAW for each DNG, and I might even have RAW's, that aren't yet converted into DNG.
I do not need proper synch, as the DNG-folder is my main workspace, I only need one-way renaming from DNG to RAW.

Is that possible, and would that even need version sets? I have only put the images in version sets in order to match them, but "Catalog: By Date" achieves almost the same result.
- no previous experience with Idimager whatsoever...
Hondor
Posts: 99
Joined: 05 Jul 14 14:52

Re: Renaming RAW-files across version set

Post by Hondor »

Am I to assume, that reconciling file names across version sets is impossible in PSU?

I was hoping some undiscovered functionality or a script would make this a trivial task. Unfortunately I haven't got the skills to make such a script myself.
- no previous experience with Idimager whatsoever...
Hert
Posts: 7870
Joined: 13 Sep 03 6:24

Re: Renaming RAW-files across version set

Post by Hert »

Right click on a version set, Show More -> From This version set. Select the files and use the rename feature to rename them?
This is a user-to-user forum. If you have suggestions, requests or need support then please send a message
Hondor
Posts: 99
Joined: 05 Jul 14 14:52

Re: Renaming RAW-files across version set

Post by Hondor »

Thanks for the answer.

That method doesn't seem to copy the filename from the main version to the other file(s). It allows me to manually "rename" my main file with its own name and its particular filetype and mirror the filename to the other files in the version set (keeping their respective original filetype endings). It's a solution of sorts, but it would only work with a rather small amount of pictures.

I was kinda hoping for a more automatic solution to be usable in one run.
- no previous experience with Idimager whatsoever...
Hert
Posts: 7870
Joined: 13 Sep 03 6:24

Re: Renaming RAW-files across version set

Post by Hert »

To do this for multiple versions then select the version sets, again use Show More from this version set (or use the shortcut). Select all and rename with some generic rename rule.
This is a user-to-user forum. If you have suggestions, requests or need support then please send a message
Hondor
Posts: 99
Joined: 05 Jul 14 14:52

Re: Renaming RAW-files across version set

Post by Hondor »

Yes, it's the design of this generic rename rule, I'm struggling to get my head around.
Example: Two version sets main names are XXX.dng and YYY.dng
I choose XXX.dng and YYY.dng and press Ctrl+Alt-V
Now I have expanded to 4 files (2 version sets with a dng and a cr2 file each): XXX.dng, IMG_ccc.cr2, YYY.dng, IMG_ddd.cr2

I then need to design a rename rule, that results in XXX.dng, XXX.cr2, YYY.dng, YYY.cr2 respecting, that some of these dng's won't have a correponding cr2

Something around temp-storing %FileName for the main version (dng) and pasting it into the corresponding cr2 in the version set
- no previous experience with Idimager whatsoever...
Hondor
Posts: 99
Joined: 05 Jul 14 14:52

Re: Renaming RAW-files across version set

Post by Hondor »

I did find a way to achieve what I wanted, BUT...

It's a fugly hack, that I'd rather replace with someting more in-house PSU-wise.
  1. I moved my RAW's and my DNG's together into the same folder.
  2. I renamed all the files in the folder to match the photos' date/timestamps
  3. I used an external program: https://www.advancedrenamer.com/ to rename the files. This program renames different file formats with identical names accordingly, so xxx.a and xxx.b can become 001.a and 001.b respectively.
  4. Then I'd have to re-verify the folder and move the RAW files into their original section afterwards.
It sorta works, but I'd really like to be without an external solution. :(
- no previous experience with Idimager whatsoever...
Hert
Posts: 7870
Joined: 13 Sep 03 6:24

Re: Renaming RAW-files across version set

Post by Hert »

I assume your main version is built with some naming convention. And you want your versions to be named with the same convention.
Then imho you should be able to apply the same rule to all your images instead of copying the name from the main version.

Of course you can always write a rename rule with a script part that gets the file name of the main version.
This is a user-to-user forum. If you have suggestions, requests or need support then please send a message
Hondor
Posts: 99
Joined: 05 Jul 14 14:52

Re: Renaming RAW-files across version set

Post by Hondor »

Hert wrote: 09 Feb 20 18:22 I assume your main version is built with some naming convention. And you want your versions to be named with the same convention.
Then imho you should be able to apply the same rule to all your images instead of copying the name from the main version.
My workflow may seem a bit quirky, but I convert everything to DNG and use that as my main version. I can then do all kinds of adjustments and keep an updated JPG within the DNG to export when needed.

The DNG's are kept in yearly folders, and numbered sequentially prefixed with the year (folder name). Sometimes, I take a more critical look at my photos and do a bit of re-culling. After that, I usually re-number the files.

Because of this, my original RAW's can name-wise get out of sync with their DNG's , if not re-numbered likewise, and also, they should be deleted as well as their culled DNG's
Hert wrote: 09 Feb 20 18:22 Of course you can always write a rename rule with a script part that gets the file name of the main version.
That would be awesome, but my skills are lacking, and the API docs on https://repository.idimager.com/documentation/ are next to incomprehensible to me. I have looked at some of the available scripts to see, if they might be adaptable to my idea, but so far, I haven been able to decipher them. I can imagine some possible ideas at work in the script "Copy Filename to Clipboard", but I cannot find the corresponding handles in the API.
- no previous experience with Idimager whatsoever...
Hert
Posts: 7870
Joined: 13 Sep 03 6:24

Re: Renaming RAW-files across version set

Post by Hert »

Create a TCatalogItem
Call PublicCatalog.FindMainVersionForItemGUID
Return the FileName of the returned TCatalogItem

PS. Not sure if these functions are available in V3.
This is a user-to-user forum. If you have suggestions, requests or need support then please send a message
Hondor
Posts: 99
Joined: 05 Jul 14 14:52

Re: Renaming RAW-files across version set

Post by Hondor »

Hert wrote: 09 Feb 20 23:31 Create a TCatalogItem
Call PublicCatalog.FindMainVersionForItemGUID
Return the FileName of the returned TCatalogItem

PS. Not sure if these functions are available in V3.
Thanks, I will try to get this to work.
- no previous experience with Idimager whatsoever...
Hert
Posts: 7870
Joined: 13 Sep 03 6:24

Re: Renaming RAW-files across version set

Post by Hert »

In the first next build there will be a new macro commands for this:
%MainVersionFileName and %MainVersionFileExtension
This is a user-to-user forum. If you have suggestions, requests or need support then please send a message
Hondor
Posts: 99
Joined: 05 Jul 14 14:52

Re: Renaming RAW-files across version set

Post by Hondor »

Well, that's a temptation to upgrade :)
- no previous experience with Idimager whatsoever...
Post Reply