Need help/opinion about problem with buddy file relation

Started by ChrisMatch, August 06, 2013, 12:03:41 PM

Previous topic - Next topic

ChrisMatch

Hi

I use PhotoNinja as my RAW converter and it generates preview pictures like this:

Original image file:
  ./2013-06-07=Jobname/2013-06-07=1156_13-7601=Jobname.NEF
Generated preview:
  ./2013-06-07=Jobname/_PhotoNinja/2013-06-07=1156_13-7601=Jobname_NEF.preview

Now I tried to find a buddy definition but failed.
I also have a suspicion that this is not possible at the moment - but I am not sure - maybe I miss something.

My suspicion is that the {ext} also returns the dot
and that the replacement expression can't eliminate the dot.

I tried something like this:
Master: \.(nef|jpg|jpeg)$
Replacement: /\.//
Link: {name}_{ext}\.preview$



One additional strange thing is that the replacement sting
always changes to /\./// on 'save' (switching away from the buddy definition).


Any ideas/thoughts?

Thanks
Chris

Mario

What is .preview for a file type? Maybe a JPEG which shows the NEF file with the virtual edits applied?
If so it would be useful to ingest this into IMatch and use it as v a visual proxy. This way you can see your files in IMatch as they look in PN.
Can you send me a sample NEF and the other files PN creates?


2013-06-07=1156_13-7601=Jobname.NEF
2013-06-07=1156_13-7601=Jobname_NEF.preview

PN replaces .NEF with _NEF and then appends a new extension .preview.

The simplest solution would be this link mask:

^(_*{name}_nef).(preview)$

This works only for files with the initial .NEF extension.

The {ext} pattern always includes the . so you cannot use something like {name}{ext} in your link mask. I never anticipated that a software would replace a . with a _ in an extension. You don't need a replacement expression because this is only used to transform the original file name before matching.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

ChrisMatch

Quote from: Mario on August 06, 2013, 06:44:16 PM
What is .preview for a file type? Maybe a JPEG which shows the NEF file with the virtual edits applied?
If so it would be useful to ingest this into IMatch and use it as v a visual proxy. This way you can see your files in IMatch as they look in PN.
Can you send me a sample NEF and the other files PN creates?
Yes, I think they are JPGs. I will send you a sample via mail but I decided against using them as visual proxies.
In my sample you will see that they don't match my final developed image which I prefer to act as a visual proxy.

Quote from: Mario on August 06, 2013, 06:44:16 PM
The simplest solution would be this link mask:
^(_*{name}_nef).(preview)$
Thanks for your suggestion I will use it as a workaround
and will define an extra Buddy relation for the rare cases where the master is a jpg.

ChrisMatch

For other users of PhotoNinja...

I used the following expressions:
      Master: \.(nef|jpg|jpeg)$
      Link:    ^_*{name}_(nef|jpg|jpeg)\.preview$

herman

See attachment for the expression that works for me.

[attachment deleted by admin]
Enjoy!

Herman.

herman

Please ignore my previous post.
I just noticed they use an underscore in stead of a dot in the original filename.
I seem to remember I tested my buddy relation definition a looong time ago and it worked.
Perhaps the preview naming of PN changed, perhaps my memory is not as reliable as I think it is  :-[
Anyway, back to the drawing board for me  ;)
I apologize for the confusion.
Enjoy!

Herman.