history stack: selective copy with lua

Is it possible with lua scripting to activate “selective copy …” and check/uncheck single items? :slight_smile:

You can activate selective copy from lua using darktable.gui.action() but you can’t manipulate the items.

1 Like

I use selective copy all the time without a lua script. Ctrl Shift C to select the individual items and then Ctrl V to paste to a new image.

Ctrl Shift V also allows selective pasting of individual items, but I never use this.

I might be misunderstanding something you are asking but I can’t see an advantage in using a LUA script for something that is already easy to do in DT.

1 Like

Thanks for reminding me… I new this but will actively apply from now on!
Kind regards, Jetze

Yes, maybe I was not so clear.
I copy/paste the same items(s) most of the time. I.e.:

  • only “color calibration” item
  • all items, except “crop” and “rotate and perspective”

So, some shortcut to copy just “color calibration” item from history will help me a lot. This is not possible directly in GUI, so I was asking if there is a possibility to create a lua script for it … :slight_smile:

1 Like

Lua doesn’t have access to the history stack.

1 Like