SlideShow [v2.0]

Discuss and share scripts and script files...
jupe
Posts: 2839
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: SlideShow [v1.7]

Post by jupe »

I can see from the screenshot 1 issue, not sure if it is the only one though since I haven't looked at the script, but XY now requires the filter to have spaces around the | sep.

FluxTorpedoe
Posts: 863
Joined: 05 Oct 2011 13:15

Re: SlideShow [v1.7]

Post by FluxTorpedoe »

jupe wrote: 24 Jun 2023 20:17 I can see from the screenshot 1 issue, not sure if it is the only one though since I haven't looked at the script, but XY now requires the filter to have spaces around the | sep.
Wow, nice eye, thanks a lot Jupe! :appl:

Indeed, the "items don't match" bug can easily be fixed by changing this line:

Code: Select all

$ImgExt = "*.jpg|*.jpeg|*.png|*.gif|*.bmp"; 
into this one:

Code: Select all

$ImgExt = "*.jpg | *.jpeg | *.png | *.gif | *.bmp";
And my bad: I am still using XYplorer v24.40 (still, with "strict" syntax ON), and I didn’t think it could have been broken in a later release… Yet it is, in 24.60 also.
To be honest, it’s very rare that (non-beta) updates break old scripts.

I could post a quick update, but I’d rather delve deeper/longer and see how things evolve on this "filter" front.
I’ll keep you updated.

jsboudreau
Posts: 2
Joined: 24 Jun 2023 05:40

Re: SlideShow [v1.7]

Post by jsboudreau »

FluxTorpedoe wrote: 24 Jun 2023 20:55
jupe wrote: 24 Jun 2023 20:17 I can see from the screenshot 1 issue, not sure if it is the only one though since I haven't looked at the script, but XY now requires the filter to have spaces around the | sep.
Wow, nice eye, thanks a lot Jupe! :appl:

Indeed, the "items don't match" bug can easily be fixed by changing this line:

Code: Select all

$ImgExt = "*.jpg|*.jpeg|*.png|*.gif|*.bmp"; 
into this one:

Code: Select all

$ImgExt = "*.jpg | *.jpeg | *.png | *.gif | *.bmp";
And my bad: I am still using XYplorer v24.40 (still, with "strict" syntax ON), and I didn’t think it could have been broken in a later release… Yet it is, in 24.60 also.
To be honest, it’s very rare that (non-beta) updates break old scripts.

I could post a quick update, but I’d rather delve deeper/longer and see how things evolve on this "filter" front.
I’ll keep you updated.
Hi Guys,

Thank you so much for helping me with this. Changing this line

Code: Select all

$ImgExt = "*.jpg | *.jpeg | *.png | *.gif | *.bmp";
and uncommenting out this line since I had to comment it out before to make it work

Code: Select all

filter $ImgExt;
worked out great. There is no more No Valid Images to show error.

Also thanks FluxTorpedoe adding this line

Code: Select all

$Part_Timer = ($Part_Timer < 1)? 1 : $Part_Timer;
was exactly what I was looking for. Now I can put in 0.001 or even 0.0001 to make the slide show run as fast as possible creating an Image Sequence player.

You guys are awesome and so is XYplorer. Best file managing software I ever used. I thought total commander was pretty good but it had it's limitation. This software does everything I need and then some.

Thanks,
Jason
Last edited by jsboudreau on 25 Jun 2023 01:48, edited 1 time in total.

jsboudreau
Posts: 2
Joined: 24 Jun 2023 05:40

Re: SlideShow [v1.7]

Post by jsboudreau »

FluxTorpedoe wrote: 24 Jun 2023 11:25 Hi,

• #1
I got this message This view is empty. 151 items don't match the current filter.
I can’t replicate this one…
What is the extension of your image files, is it really "png"?

———————————————————————————

• #2
how hard would it be to make the image play back as fast as possible.
That’s possible indeed!
(Of course the real speed will depend on the size of your images / previews already generated or not)

Find the following line at the end of the script (around line ~166)

Code: Select all

$Part_Timer = ($STG_Timer / 50); // Smaller loop to facilitate Esc detection
And add this line after it:

Code: Select all

$Part_Timer = ($Part_Timer < 1)? 1 : $Part_Timer;
———————————————————————————

When this is settled, I’ll post a update with this speed fix, and another minor fix.
Tell me how things go.
Hi FluxTorpedoe,

Just curious when the SlideShow / Image Sequencer is running do you need to have it visually show it switching between the images. Just wondering if that could be shut off, would it help even more with playback performance.

Thanks,
Jason

jsboudreau
Posts: 2
Joined: 24 Jun 2023 05:40

Re: SlideShow [v1.7]

Post by jsboudreau »

Hi FluxTorpedoe,

Also is it possible to add an option to get the slideshow to run in the preview pane not a floating window or full screen.

Thanks,
Jason
Last edited by jsboudreau on 25 Jun 2023 04:27, edited 2 times in total.

FluxTorpedoe
Posts: 863
Joined: 05 Oct 2011 13:15

Re: SlideShow [v1.7]

Post by FluxTorpedoe »

Glad it’s working for you! :)

———————————————————————————
jsboudreau wrote: 25 Jun 2023 02:05 Just curious when the SlideShow / Image Sequencer is running do you need to have it visually show it switching between the images. Just wondering if that could be shut off, would it help even more with playback performance.
I fear I don’t know what you’re refering to with "visually show it switching between the images".
Here in fullscreen, there’s no indicator at all, except the fact that the images change. Maybe you have the status visible (toggle with "S")?
Or are you talking in Window mode where, in the list view behind the preview, we see the selection moving from one file to the next? (but that’s unavoidable)

———————————————————————————
jsboudreau wrote: 25 Jun 2023 04:24 Also is it possible to add an option to get the slideshow to run in the preview pane not a floating window or full screen.
Nice idea…
OK, I’ve implemented it!
A little more tricky than I thought, so I’m still checking/debugging.

FluxTorpedoe
Posts: 863
Joined: 05 Oct 2011 13:15

Re: SlideShow [v2.0]

Post by FluxTorpedoe »

##################
###   Slideshow v2.0   ###
##################



Hi everyone,

Another update long overdue… But better late than never, here’s a version with several important enhancements.

Most notable (full list and more details available below in changelog):
 ++ Option to run slideshow in internal preview pane
 ++ Abitily to use speed less than 0.1 sec (eg 0.01 works)
 ++ Pressing ESC while a slideshow runs should now always stop properly (closing slideshow tab and preview)

Note: On first run of the script, a maintenance window may open to enable a tweak in XYplorer. You can safely press OK.
(To enable it later, just reinstall a downloaded version of the script.)

Note for updaters: All settings are located at the bottom of the script.
So copy your slideshow settings from your existing script to the new one, and set UsePictureCodecs=1 if you have picture codecs installed.

Have a nice day! 8)
   Flux

———————————————————————————

• DOWNLOADS: (Previous versions available in Changelog)

› Script:
Slideshow.xys
(18.17 KiB) Downloaded 6 times
———————————————————————————

• REQUIREMENTS:
 — XYplorer >= 12.40.0213 (to be confirmed) — Highly Recommended: XYplorer version >= 24.60.0105

• INSTALLATION » for first-time users:
 — Please refer to first post

• UPDATE » for all users:
 — Overwrite your existing "Slideshow.xys" file with latest version
      (opt. after backing up your existing script / copying its settings)
 — Update your settings (for codecs and slideshows), at the bottom of the script
 — Note: On first run, an XYplorer and Slideshow maintenance check might be done and display a confirmation message, you can safely press OK. (Or run it later by reinstalling the downloaded script)

———————————————————————————

• CHANGELOG – v7.00:
++ Option to run slideshow in internal preview pane
      Note: with XYplorer < 24.60.0105, windowed preview flickers to steal back focus (not possible with internal)
++ Abitily to use speed less than 0.1 sec (eg 0.01 works)
      Note: real speed will depend on type and size of images
++ If a preview is already open when script is launched, it will be used (settings override),
      based on priority: Fullscreen > Window > internal preview
++ Pressing ESC while a slideshow runs should now always stop properly (closing slideshow tab and preview)
      Note: To work with internal preview, XYplorer tweak "PreviewCloseOnEsc" must be enabled
      This tweak is checked (and opt. enabled) on each update/first run of this script
+ If script was nonetheless interrupted, and slideshow tab and internal preview were left open,
      running any new slideshow will close both on start
** Picture codec setting is now with the other settings at the bottom of this script
* Filter bar: Replaced list of image filters by caption "Images"
! Made "filter" compliant with XY >= v22.20.0220 (mandatory spaces around | separators)
* Prevent flickering of image if preview already opened when launching slideshow


• CHANGELOG – all versions:
Don’t hesitate to browse the exhaustive changelog (with download links to previous versions) here: • Slideshow Changelog •

lian00
Posts: 377
Joined: 09 Jul 2014 17:12

Re: SlideShow [v2.0]

Post by lian00 »

Thanks a lot for update.
Windows 10 64 bits

Post Reply