Auto Hide Button on Standalone Viewers Toolbar

Hello!

I index all my videos. Example:

video.mp4
video.mp4.jpg

I use the Standalone Viewer to view said indexed files.

I have a button on the Standalone Viewers toolbar that plays the associated video file from the currently viewed index:

"C:\Program Files\DAUM\PotPlayer\PotPlayerMini64.exe" {filepath$|noext}

Is there a way to auto hide the button if there is no associated video file?

Thanks for any help!

Add this to the button:

@hideif:=!Exists(RegEx(selpath, "(.*)\..*?", "\1"))
2 Likes

Works perfectly. Thank you so much Alexander!

Opus 13.12.1 and up allow a more intuitive form:

@hideif:=!Exists(Parent(selpath) + Stem(selpath))
4 Likes