Skip to main content
Known Participant
August 11, 2025
Answered

Undo operation under plugin works

  • August 11, 2025
  • 1 reply
  • 154 views

My plugin EvalFocus.lrplugin ,

I select photos from catalog and launch plugin, 

plugin process photos takes long time, so I do another task, develop for example.

when 'Undo" in develop module,

Expected results

Undo operation at develop module just before.

Acutal results

Lightroom looks Undo plugin operation. ( Undo (string specified withWriteAccessDo() ) appears on monitor)

but nothing undoable, plugin runs continue. 

Is there way to fix plugin to tell lightroom "plugin cannot undoable" and Undo develop operations?

Lightoom 14.4 / macOS 15.6

Correct answer C.Cella

@remov_b4_flight 

Only catalog:withPrivateWriteAccessDo() are not part of the undo Stack

You could write the results of your "Evaluate Focus" plug-ins as custom metadata and by using a private access this they would not be undoable.

.

1 reply

C.Cella
C.CellaCorrect answer
Legend
August 15, 2025

@remov_b4_flight 

Only catalog:withPrivateWriteAccessDo() are not part of the undo Stack

You could write the results of your "Evaluate Focus" plug-ins as custom metadata and by using a private access this they would not be undoable.

.

Known Participant
August 15, 2025

Thank you.

I replaced partly withPrivateWriteAccessDo() and reduce effect of undo queue.

setRawMetadata() is called by evaluation results, It wasn't into withPrivateWriteAccessDo() gate.