メインコンテンツへスキップ

⚠️ Please note that this topic or post has been archived. The information contained here may no longer be accurate or up-to-date. ⚠️

selecting images with a list of filenames in C1

コメント

9件のコメント

  • Den Denyer
    I too am struggling with this *exact* issue.

    What I've had to do is go to Lightroom, select the files, tag them with colour labels, save to XMP, then return to C1 to filter the selection.

    I find myself having to use LR most of the time for image management, which is frustrating as I would rather ditch it, however I have found C1 unacceptably poor at metadata and image management, leaving me in a right pickle.

    And no, sadly, I don't have a solution for you, other than to use Lightroom to make your file selections as I describe.
    0
  • brianmerwin
    Hey gents - I don't have an answer for you and agree that this would be a useful feature (to me at least).

    To get some traction on that, be sure (both of you) to submit a feature request (via support case) to Phase One so they can log it on their list of requests and it may be added as an option in the future.



    Thanks!
    0
  • peter Frings
    stubborndog wrote:
    One thing I discovered in Lightroom which I would love to have in C1 is the ability to filter by a list of filenames separated by a comma and a space (abc 123, abc 127, abc 156). My clients see a bunch of lo-res shots and in the case of some catalogue shoots return a list of say 200 filenames from an original shoot of 2000 images.

    In lightroom you copy your long list of filenames and in the Library Pane select text filter - pick filename and then contains and in the window paste the whole long list. LR brings op the chosen ones. This process manually takes over an hour and is mind numbing. I have tried combinations in Capture 1 but have not had success. Anyone got a trick?


    I have tried this and it seems to work. However, the trick is to omit the comma. BUT, my files don't have a space in them, so I'm not sure what will happen when they have.

    So, assuming your files have dashes instead of spaces, your search string would be "abc-123 abc-127 abc-156". To get rid of the commas, simply use the "Find and Replace" function in a text editor first.

    Note: this works in the search field and in the "Any" field of the smart filter, but not in the "Display name" field (assuming that that is the file name). So, your search could find keywords as well.

    HTH,
    Peter.
    0
  • BeO
    Top Commenter
    stubborndog wrote:
    Anyone got a trick?


    So here is the thing I've tried successfully with 9.0.3 Windows version with 250 images in a list (btw. with decent performance). The base idea is to use a preset in the filter dialog which you have edited in a text editor with replace functionality.

    STEP 1. Create a template preset file (e.g. mypreset.cosearchpreset and store it in the SearchPreset folder) which should look like this:

    <?xml version="1.0" encoding="utf-8"?>
    <MatchOperator Kind="OR">
    <MatchOperator Kind="AND">
    <Condition Enabled="NO">
    <Key>ANY</Key>
    <Operator>6</Operator>
    <Criterion>null</Criterion>
    </Condition>
    </MatchOperator>
    <MatchOperator Kind="AND">
    <Condition Enabled="YES">
    <Key>displayName</Key>
    <Operator>0</Operator>
    <Criterion>FILELIST</Criterion>
    </Condition>
    </MatchOperator>
    </MatchOperator>


    Note, to create this I made a filter with the C1 dialog to the desired settings and saved it as a preset then replaced a part of it with the string FILELIST. You have to replace this string later in the process.

    STEP 2. Get your comma separated list of file names in an editor and replace all commata (and all blanks directly after the commata, and also all line breaks) with the following string as a "separator":


    </Criterion></Condition></MatchOperator><MatchOperator Kind="AND"><Condition Enabled="YES"><Key>displayName</Key><Operator>0</Operator><Criterion>

    Note, you aim to have one single line. Here is an example with 2 file names (DSC04772 and DSC04771):
    DSC04772</Criterion></Condition></MatchOperator><MatchOperator Kind="AND"><Condition Enabled="YES"><Key>displayName</Key><Operator>0</Operator><Criterion>DSC04771

    STEP 3. Now, copy the file list with the newly created xml separator from step 2. Replace the string FILELIST in your file mypreset.cosearchpreset from step 1. It should look like this:

    <?xml version="1.0" encoding="utf-8"?>
    <MatchOperator Kind="OR">
    <MatchOperator Kind="AND">
    <Condition Enabled="NO">
    <Key>ANY</Key>
    <Operator>6</Operator>
    <Criterion>null</Criterion>
    </Condition>
    </MatchOperator>
    <MatchOperator Kind="AND">
    <Condition Enabled="YES">
    <Key>displayName</Key>
    <Operator>0</Operator>
    <Criterion>DSC04772</Criterion></Condition></MatchOperator><MatchOperator Kind="AND"><Condition Enabled="YES"><Key>displayName</Key><Operator>0</Operator><Criterion>DSC04771</Criterion>
    </Condition>
    </MatchOperator>
    </MatchOperator>


    STEP 4. Now save this file with a new name.
    You are finished with your work in the text editor.

    STEP 5.
    Goto "All images" and open the filter dialog. In the dialog the new preset should appear immediately when you click "Presets" without restarting C1. Only for long file lists and a slow computer it can take a few seconds.
    Choose the new preset, the filter dialog should populate with all desired file names (each as a separate condition). Can take a few seconds but I found it quite fast. Then C1 filters for your images.

    STEP 6. I assume you now can select the images in the browser and make a new album (which should be faster than a smart album with this filter).

    Notes to the edit:
    - I used Notepad++
    - to replace comma and line breaks I used replace

    - if you have the file names already in one single line use "," or ", " (without the quotes)
    - if you make one fault with the XML (e.g. line breaks or blanks) the preset either does not show up in the dialog or it shows up but does not work (e.g. when having blanks before an image name). Don't give up and once you finally achieved it you know how easy it is.
    - If you copy my example code snippets from above and save it in a file make sure each line starts without leading blanks (which happened to my when I copied it from the code boxes here)

    Cheers
    BeO

    EDIT:
    The short version is:
    In order to make this a repeatable workflow you should have to template files, (1) the preset template from step 1 and the xml separator from step 2. Prepare your clients file list to have abc 123,abc 124,abc 125 in one single row, replace all commata with the separator from step 2, take this and replace the string FILELIST from step 1, take this and store it in the SearchPresets folder as a new file. Then use the filter preset in C1.
    0
  • SFA
    A neat solution BeO.

    On that basis a simple program to accept list with suitable format and create a preset might well be almost all that people need.

    Not too different to the Keyword list import I guess ...

    There may be technical issues about large lists that we are not aware of .... but still, creating a utility to do the work would be a good enhancement request.


    Grant
    0
  • peter Frings
    BeO wrote:
    stubborndog wrote:
    Anyone got a trick?


    So here is the thing I've tried successfully with 9.0.3 Windows version with 250 images in a list (btw. with decent performance). The base idea is to use a preset in the filter dialog which you have edited in a text editor with replace functionality. ...


    Mmmm, that seems like a lot of work. What's wrong with pasting the filenames (without commas) into the search field? The only difference seems that the preset will only search in the filenames, while using the text field may return keywords and other text. However, when using filenames, there might be only a few false positives, if any at all.

    Disclaimer: I've only tried this with 10 names in a small catalog. Performance may not be great with more, but when the dust has settled you can mark the found images or place them in an album.

    Cheers,
    Peter.
    0
  • BeO
    Top Commenter
    peter.f wrote:


    Mmmm, that seems like a lot of work. What's wrong with pasting the filenames (without commas) into the search field?


    It was a bit of work to figure that out, but applying it is not so much work.

    There is nothing wrong with the simple approach, pasting the filenames into a search field, if that works, on contrary. But it just didn't work in my installation at all. The browser shows 0 images.
    Can you please describe exactly what you pasted (e.g. with or without file extension) and in which exact field? Which version and operating system?

    Thanks,
    BeO
    0
  • peter Frings
    BeO wrote:
    There is nothing wrong with the simple approach, pasting the filenames into a search field, if that works, on contrary. But it just didn't work in my installation at all. The browser shows 0 images.
    Can you please describe exactly what you pasted (e.g. with or without file extension) and in which exact field? Which version and operating system?


    I'm on C1 9.0.3, Mac OSX El Capitan.

    I typed the file names without extension, separated by spaces in the browser's search box: e.g., "DSC0143 DSC5776 DSC5132 DSC7889". That is the same as selecting the "Any" criterion in the Advanced Search dialog box and typing the names after the "contains" field.

    I would've expected that you could use the "Display Name" criterion as well, but that unfortunately doesn't work (no images found). It seems their implementation is a little different, depending on the criterion.

    The drawback is that C1 searches in all possible metadata fields. It may be slower, and it might find false matches. E.g., when I don't type the DSC part in the filenames, C1 gives me a couple of images that have those numbers somewhere else. E.g., I had a false match when looking for image "0030": the filename did not have "0030" in it, but the image was taken with a 30mm! So, C1 interpreted my text as the number 30 and found that image. By adding the DSC part (or just C), C1 can't match numbers and you'll avoid that kind of false positives.

    Adding the extension doesn't seem to matter much. It will not eliminate false positives. E.g. 0030.NEF will still find that image with the 30mm. So I suggest that you don't bother adding them, unless you need to distinguish between file types.

    So, you're method is correcter in that it searches the file names only ("Display names"? Where did that come from?), and it might be much faster because it only has to search 1 attribute. But for me, I can usually find the image(s) I'm looking for by just using the search box.

    HTH,
    Peter.
    0
  • BeO
    Top Commenter
    Thanks Peter.

    Yes, I tried that before in the browsers search box, with or without extension, only separated by blank, or comma. It works only for 1 image. And the displayname (as displayed in the browser) is also the file name on disk.

    Different implementation or bug, who knows...

    So, if the original poster stubborndog has a Mac or Windows there is at least one solution with C1 and a text editor if he receives a filenames list from a client.

    cheers
    BeO
    0

投稿コメントは受け付けていません。