5 Replies Latest reply on Aug 28, 2011 10:22 PM by areohbee

    photo:getNameViaPreset - what good is it?

    areohbee Level 5

      I stumbled upon this function, thinking: "Gee, maybe there is a way to rename photos programmatically that had previously escaped me".

       

      So, I experimented, and got the function to create a new name from a filenaming preset, but there is still no way to rename a photo, right???

       

      So, what value is this function??? (I mean other than the obvious of being able to rename a file on disk without renaming it in the catalog).

       

      Rob

        • 1. Re: photo:getNameViaPreset - what good is it?
          johnrellis Most Valuable Participant

          Maybe this is for export and publish plugins that want to use the presets for generating the filenames of the exported or published photos?

          1 person found this helpful
          • 2. Re: photo:getNameViaPreset - what good is it?
            DawMatt Level 3

            Hi Rob,

             

            The reaction is understandable, but I can also sympathise with the decision not to include it.

             

            I had originally assumed there would be a rename via preset method, not just a get name equivalent. But I can imagine what havoc could ensue if it was included and a plugin author didn't exercise due care when making use of the functionality. Imagine a situation where a user installed a new plugin, forgot to select a photo (or selected all of them), and a slip of the mouse caused them to accidentally rename all of their photos to Blah00001, Blah00002, etc when looking at the options available in the plugin? The Lightroom undo mechanism would need to be very robust to restore from this and external factors (virusscanners, desktop search indexing engines, etc) might interfere with successfully undoing the process.

             

            I have used this function in its current form for purposes similar to those John mentioned. But in general I can't see a whole lot of use for it in its current form, especially as it has a bug/design flaw (I've reported it) that means it can't cope with all the naming presets that the relevant LrApplication method returns.

             

            Thanks,

            Matt

            • 3. Re: photo:getNameViaPreset - what good is it?
              areohbee Level 5

              I doubt Adobe excluded the photo rename function out of "fear".

               

              I really, really, really, hope Lr4 has it.

               

              Rob

              • 4. Re: photo:getNameViaPreset - what good is it?
                DawMatt Level 3

                Excluding it out of fear? Probably not. But they might have chosen not to include it during that cycle because they didn't have enough bandwidth to ensure it was safely implemented and completely bulletproof. Who knows? All we know is it isn't there right now.

                 

                So where does "really, really, really" place this "feature request" priority wise relative to all the others you already have registered? :-)

                 

                Matt

                • 5. Re: photo:getNameViaPreset - what good is it?
                  areohbee Level 5

                  "I'm really, really, really hoping for a rename feature in SDK 4" can be considered synonymous with "I'll be really, really, really disappointed if its not there". Reasons available upon request, but perhaps it suffices to say: "I won't be the only one".

                   

                  And, yes - I have a lot of good ideas to improve Lightroom and the SDK...