1 Reply Latest reply on Sep 27, 2014 10:43 AM by johnrellis

    Use plug-in metadata for file renaming?

    Robin Krahl

      Hi there,


      I'm writing a plug-in that adds a new export method to Lightroom and that defines some plug-in metadata fields.  I'd like the users to use these metadata fields to define their file renaming pattern in the export dialog. That means I'd like to create a token pattern from a plug-in metadata field.


      Is there a way to accomplish this?




        • 1. Re: Use plug-in metadata for file renaming?
          johnrellis Most Valuable Participant

          I don't believe there's any way to incorporate plugin metadata fields directly into the builtin renaming patterns.   A couple of possibilities for alternate solutions:


          - Appropriate an existing metadata field that the renaming patterns know about (e.g. Description Writer) and have your plugin set that field with the desired custom metadata using photo:setRawMetadata(). 


          - Use or adapt the Exportant plugin, which provides greatly expanded file renaming possibilities.  The author Role Cole contributes here and is very helpful.