Skip to main content
Known Participant
November 4, 2023
Question

SDK Naming History Step

  • November 4, 2023
  • 1 reply
  • 451 views

I am working on a Lightroom Classic plugin. Does anyone know if there is a way to set the history step name on the right-hand side of the history panel? See the screenshot. 

 

 

This topic has been closed for replies.

1 reply

johnrellis
Brainiac
November 5, 2023

I haven't found a way for plugins to control any aspect of history steps.

cwurzbachAuthor
Known Participant
November 5, 2023

I know you can control the name of the history step (the name on the left-hand side of my screenshot) but I didn't know if there was a way to control the text on the right-hand side. Thanks again for your insight on this @johnrellis, it's much appreciated.

cwurzbachAuthor
Known Participant
November 10, 2023

"The history step can be named via photo:applyDevelopSettings( settings, optHistoryName [name history step here], optFlattenAutoNow )"

 

Thanks much, I forgot that was documented in SDK 11.2.  


@johnrellis Glad to help!

 

I'm reading through the SDK documentation and it indicates you can provide a name for the "undo/redo name" for LrTasks.startAsyncTask via LrTasks.startAsyncTask( func, optName [name goes here] ) but I can't seem to make it work for some reason.

 

Here is an example code:

 

LrTasks.startAsyncTask( function()
... task here ...
end)

 

I am not sure where or how to insert the optName. The following code doesn't work:

 

LrTasks.startAsyncTask( function(), "name",
... task here ...
end)

 

Any guidance? Your initial reply made me realize that many of my "Undo/Redo Names" are not defined so I am trying to set the names now. Otherwise, I get "Undo/Redo Names" like this: