8 Replies Latest reply on Dec 15, 2010 2:11 PM by areohbee

    Virtual copies

    jarnoh Level 1

      I had a sudden urge to create (stacked) virtual copies from plugin, but to me it looks like it is not possible?  We can only add new photos using LrCatalog:addPhoto, and that raises an error if the path is already in catalog.

       

      Any ideas?

       

      Jarno

        • 1. Re: Virtual copies
          areohbee Level 5

          I don't know how to create a virtual copy from a plugin, except for stuffing the keyboard with a Ctrl-' (dunno if the equivalent works on Mac) ***. I don't think its supported in the API, and XMP re-writing won't work either.

           

          *** The code to do it is available here.

           

          If you were willing to close Lightroom to do it, you could also do it via SQLite database client (after some reverse engineering to figure out what to do (I dont know)...)

          • 2. Re: Virtual copies
            jarnoh Level 1

            I'd rather not send hacky keyboard events, but it was also the only way I could find.

             

            I tried sending events already after writing the post, the applescript code looks like this:

             

            tell application "Adobe Lightroom 3.3 RC"

                 activate

                 tell application "System Events"

                      keystroke "'" using {command down}

                 end tell

            end tell

             

            I guess I could get a list of master photos virtual copies, send some key events and then see what photos were added.  I'll have to think about it, if I'm willing to use such hacks   I'm not very keen on using a plugin framework, especially as the amount of code is quite small anyway.

             

            Thanks for your confirmation.

             

            Jarno

            • 3. Re: Virtual copies
              jarnoh Level 1

              This plugin idea has been haunting me, so I decided to release a version of it right away.

               

              http://www.knobroom.com/excessor/

               

              It creates ridiculous amounts of virtual copies of images by applying whole preset folder at a time.  Something that I built in hope that it would help with making decision about which style to apply to each image.

               

              Jarno

              • 4. Re: Virtual copies
                Lichtzeichenanlage

                For things like this snapshoots might be a possible workaround...

                • 5. Re: Virtual copies
                  jarnoh Level 1

                  Not really, the point is that variations are easy accessible and adjustable.  Applying multiple presets as snapshots doesn't make any sense, since only the latest is shown.

                   

                  Jarno

                  • 6. Re: Virtual copies
                    Lichtzeichenanlage Level 1

                    Yes and no. You can switch through them in the development settings and the

                    plus is, that they are also available in the bridge. But - If it is not your

                    business case - no problem

                     

                    2010/11/30 jarnoh <forums@adobe.com>

                     

                    Not really, the point is that variations are easy accessible and

                    adjustable.  Applying multiple presets as snapshots doesn't make any sense,

                    since only the latest is shown.

                    • 7. Re: Virtual copies
                      jarnoh Level 1

                      If anyone else chooses to go for the keyboard shortcut, make sure to check all languages for the shortcuts!!

                       

                      E.g. creating virtual copy shortcut first looks that its exactly same in all localizations...

                       

                      en Cmd+'

                      fr Cmd+'

                      ko Cmd+'

                      nl Cmd+'

                      pt Cmd+'

                      zh_cn Cmd+'

                      zh_tw Cmd+'

                       

                      ...but then there are some exceptions:

                       

                      de Cmd+t

                      ja Cmd+y

                      es Shift+v

                      it Shift+v

                      sv Shift+v

                      Jarno

                      • 8. Re: Virtual copies
                        areohbee Level 5

                        Thanks Jarno - I did not know that.

                         

                        (added to pearls-of-wisdom(wiki)@lrdevplugin)

                         

                        _R