Page 1 of 1

Cycling behavior of Thumbnail views in scripts

Posted: 13 Aug 2014 12:33
by klownboy
Hi Don, I understand that cycling on a thumbnail view in the right click of the view menu will cycle between the thumbnail view and the non-thumbnail view (e.g., I'm currently in a #308, Large thumbnail view and I click again and view changes to the non-thumbnail view) and that's fine. However, if I'm in a script, I can't immediately change from one size thumbnail view (#308) to another thumbnail view (#307) without the cycling (instead the view changes to the non-thumbnail view (in my case details). As an example, get in an image folder and with a thumbnail view Large thumbnail (#308). Now run the following in a script or AB...

Code: Select all

::if (get("view") == "6") {#307;}
The if statement is true, indicating we are in a large thumbnail view, but instead of the view changing from Large thumbnails to Medium thumbnails (#307) it changes to the non-thumbnail view. I think in scripting the view command ID should immediately change to the thumbnail view specified in the script and not act as a cycle as it does in the menu. It makes it difficult in scripting to change to different thumbnail views on the fly when the view command IDs are acting as a cycle.
Thanks,
Ken

Re: Cycling behavior of Thumbnail views in scripts

Posted: 19 Aug 2014 14:36
by admin
Your script works here as expected (change to medium thumbs view). :?

Re: Cycling behavior of Thumbnail views in scripts

Posted: 19 Aug 2014 15:20
by klownboy
Thanks Don,it must have been a long day or night. I think what going on is, if you are already in the "view" you are calling out (e.g., you in a medium thumb view and call out ::if (get("view") == "5") {#307;} XY does cycle to the non-thumbnail view ("5" is for medium and #307 is medium). I think I'll simply have to say in the script, if not currently in view desired then specify the cid.

Code: Select all

::if (get("view") != "6") {#308;}
Thanks, Ken

Re: Cycling behavior of Thumbnail views in scripts

Posted: 30 Dec 2020 16:39
by lian00
Hello, I want to create a script for the new feature (middle click on tab or in empty space) that will define a view. But where can I find the list of # like in #308 ?

Re: Cycling behavior of Thumbnail views in scripts

Posted: 30 Dec 2020 17:01
by highend
Menu - Help - List All Commands...

Re: Cycling behavior of Thumbnail views in scripts

Posted: 30 Dec 2020 17:11
by lian00
highend wrote: 30 Dec 2020 17:01 Menu - Help - List All Commands...
I should have guessed. Thanks a lot.