Skip to main content
Known Participant
March 28, 2024
Answered

How to accomplish complex non-export plugin?

  • March 28, 2024
  • 3 replies
  • 320 views

I want to create a plugin allowing the user to select a photo or photos, choose Develop Presets to apply,  make virtual copies of the photo, and apply the presets.  The detailed workflow is:

 

For a selected photo or photos:

* Allow the user to select preset copy options:

    * Select from any installed Develop Presets by checking checkboxes or similar

    * Select presets from a previously saved set of presets

    * Choose whether the copies should be grouped with the original

* Once the selection is made, for each photo and preset, make a virtual copy and apply the preset to that virtual copy

* If grouping was selected, create a Stack and group them all together

 

I am looking for advice on the best way to handle this task. I have proven the basic operation using a dialog-based plugin, but I found it untenable because of the size of the dialog. Simply populating a dialog with all the presets makes the dialog larger than the screen.

 

The tools provided in the Export plugin make this a bit easier since it provides niceties such as scroll bars and the ability to save Preset groupings for later use.  Unfortunately, the concept of exporting does not jibe with that of making a virtual copy; rendering is expensive and not necessary.

 

Any suggestions for how I might accomplish this would be greatly appreciated!

This topic has been closed for replies.
Correct answer johnrellis

"I found it untenable because of the size of the dialog. Simply populating a dialog with all the presets makes the dialog larger than the screen."

 

You could use a viewFactory:simple_list() control, which provides a scrollable list control allowing multiple selection.

3 replies

johnrellis
Legend
March 28, 2024

"If grouping was selected, create a Stack and group them all together"

 

Unfortunately, the SDK provides no operations for manipulating stacks. The Auto Stack command in my Any Source plugin uses Applescript on Mac and Autohotekey on Windows to invoke the stacking menu commands, which is fragile.

johnrellis
johnrellisCorrect answer
Legend
March 28, 2024

"I found it untenable because of the size of the dialog. Simply populating a dialog with all the presets makes the dialog larger than the screen."

 

You could use a viewFactory:simple_list() control, which provides a scrollable list control allowing multiple selection.

PaulWaldoAuthor
Known Participant
March 28, 2024

Interesting, I had not seen simple_list in the SDK guide, but I do see it in the API docs.  I'll give it a try!

Rob_Cullen
Community Expert
Community Expert
March 28, 2024

For comparison purposes, I don't know if you have seen the 'Excessor' plugin. Excessor – Capture Monkey 

-Choose one or more images in Library module,  run the Excessor Plugin,  it creates Virtual Copies for each Develop Preset in the Group/Folder that you select.  I create a 'Favourites' group of dev presets and choose this Group to create a range of VCs.

 

 

Regards. My System: Windows-11, Lightroom-Classic 15.3, Photoshop 27.5, ACR 18.3, Lightroom 9.3, Lr-iOS 10.4.0, Bridge 16.0.3 .