Button command: Flip image horizontally / vertically + refresh Viewer Pane preview

Hello,

I'm trying to create a button command that will flip selected images horizontally / vertically.
Lister in thumbnail view + Viewer Pane on the side.

So far I got this and it works:

@nodeselect
Image FLIP=h HERE REPLACE QUALITY=100 PRESERVEDATE'

However I noticed that after a button operation the image thumbnail in the Lister is flipped but the preview image in the Viewer Pane does not update/refresh automatically with it.

What code do I have to add to the command to do that while keeping the selected files selected after the button press?

Thank you in advance!

Try

Go REFRESH=viewpane

Thank you. I tried that a bit earlier but that unfortunately refreshes the Lister and deselects the previously selected thumbnails. Is there a way to combat this and only refresh the Viewer Pane preview?

Interesting... the command works fine with PRESERVEDATE removed.

A quick solution would be to toggle the viewpane.

@nodeselect
Image FLIP=h HERE REPLACE QUALITY=100 PRESERVEDATE
Set VIEWPANE=Toggle
Set VIEWPANE=Toggle
1 Like

@lxp Yes, excellent! That is exactly what I was trying the command to do.

Thank you very much for your efforts! :grinning: :ok_hand: