Thumbnails TB Button
-
aurumdigitus
- Posts: 1075
- Joined: 30 May 2008 21:02
- Location: Lake Erie
Thumbnails TB Button
Is there a way to change from "Thumbnails #1" view? This seems to be a hard coded default value. It would be very nice to have the capability to change it to #2 or #3 even if it has to be accomplished thou a Tweak. 
-
serendipity
- Posts: 3360
- Joined: 07 May 2007 18:14
- Location: NJ/NY
Re: Thumbnails TB Button
Right-clicking on "Thumbnails view" TB button gives you an easy way to go to #2 or #3 Thumbs. The other two views TB button also have the same options.aurumdigitus wrote:Is there a way to change from "Thumbnails #1" view? This seems to be a hard coded default value. It would be very nice to have the capability to change it to #2 or #3 even if it has to be accomplished thou a Tweak.
-
aurumdigitus
- Posts: 1075
- Joined: 30 May 2008 21:02
- Location: Lake Erie
Re: Thumbnails TB Button
Sorry - original question poorly phrased. Object is to make #2 or #3 "sticky".
Using Configuration|Thumbnails the values can be altered but this is a work-around not a solution. Want to be able to keep the other resolutions in place as needed on the fly depending on images being examined.
Using Configuration|Thumbnails the values can be altered but this is a work-around not a solution. Want to be able to keep the other resolutions in place as needed on the fly depending on images being examined.
-
serendipity
- Posts: 3360
- Joined: 07 May 2007 18:14
- Location: NJ/NY
Re: Thumbnails TB Button
Well, if you don't mind the tweak (which also requires restart) then you won't mind a script too. One could write (if you need i can write one for you) a script (which writes to ini files) to move around Thumbs #1, #2 an #3.aurumdigitus wrote:Sorry - original question poorly phrased. Object is to make #2 or #3 "sticky".
Using Configuration|Thumbnails the values can be altered but this is a work-around not a solution. Want to be able to keep the other resolutions in place as needed on the fly depending on images being examined.
-
aurumdigitus
- Posts: 1075
- Joined: 30 May 2008 21:02
- Location: Lake Erie
Re: Thumbnails TB Button
A script would be perfectly fine and eruditional as a bonus!
To be perfectly clear, the idea is to be able to choose between resolutions one, two or three and then keep it locked as the new default.
Thank you for volunteering your time in this matter. Perhaps the moral is for me to finally get around and learn to script.
To be perfectly clear, the idea is to be able to choose between resolutions one, two or three and then keep it locked as the new default.
Thank you for volunteering your time in this matter. Perhaps the moral is for me to finally get around and learn to script.
-
serendipity
- Posts: 3360
- Joined: 07 May 2007 18:14
- Location: NJ/NY
Re: Thumbnails TB Button
There you go, copy & paste into catalog:aurumdigitus wrote:A script would be perfectly fine and eruditional as a bonus!
To be perfectly clear, the idea is to be able to choose between resolutions one, two or three and then keep it locked as the new default.
Thank you for volunteering your time in this matter. Perhaps the moral is for me to finally get around and learn to script.
Code: Select all
//Cycle thumbs
getkey $thumbwidth1, "Width", "Thumbs";
getkey $thumbheight1, "Height", "Thumbs";
getkey $thumbwidth2, "Width1", "Thumbs";
getkey $thumbheight2, "Height1", "Thumbs";
getkey $thumbwidth3, "Width2", "Thumbs";
getkey $thumbheight3, "Height2", "Thumbs";
$Userinput = Input ("Change Thumbs order", "Your current Thumbs order is 1-2-3: <crlf> Thumbs #1 ($thumbwidth1 x $thumbheight1) <crlf> Thumbs #2 ($thumbwidth2 x $thumbheight2) <crlf> Thumbs #3 ($thumbwidth3 x $thumbheight3) <crlf><crlf> To change your thumbs order to: <crlf> 2-3-1 input 2 <crlf> 3-1-2 input 3", 2, s);
IF ($Userinput == 1) {
status "#1:($thumbwidth1 x $thumbheight1), #2:($thumbwidth2 x $thumbheight2), #3:($thumbwidth3 x $thumbheight3)";
end $Userinput == 1, "Thumbs order is same as now";
}
ELSEIF ($Userinput == 2){
#182;
setkey $thumbwidth2, "Width", "Thumbs";
setkey $thumbheight2, "Height", "Thumbs";
setkey $thumbwidth3, "Width1", "Thumbs";
setkey $thumbheight3, "Height1", "Thumbs";
setkey $thumbwidth1, "Width2", "Thumbs";
setkey $thumbheight1, "Height2", "Thumbs";
status "#1:($thumbwidth2 x $thumbheight2), #2:($thumbwidth3 x $thumbheight3), #3:($thumbwidth1 x $thumbheight1)";
}
ELSEIF ($Userinput == 3){
#182;
setkey $thumbwidth3, "Width", "Thumbs";
setkey $thumbheight3, "Height", "Thumbs";
setkey $thumbwidth1, "Width1", "Thumbs";
setkey $thumbheight1, "Height1", "Thumbs";
setkey $thumbwidth2, "Width2", "Thumbs";
setkey $thumbheight2, "Height2", "Thumbs";
status "#1:($thumbwidth3 x $thumbheight3), #2:($thumbwidth1 x $thumbheight1), #3:($thumbwidth2 x $thumbheight2)";
}
ELSE {
MSG "Invalid value, Enter 1, 2 or 3";
}
MSG "Thumbs will be reordered only after XY restart (without saving). Restart now?", 1;
#190;
-
aurumdigitus
- Posts: 1075
- Joined: 30 May 2008 21:02
- Location: Lake Erie
Re: Thumbnails TB Button
Wow, very nice work!
Your code uses a brute force method to alter Configuration but it does get the job done. Forty-six lines containing almost 2,000 characters to get what appeared like a fairly simple task accomplished. How long have you been at this? (And once learning ancient Greek seemed difficult.)
The menu is very well presented also. Suggest you submit this to the Script Library.
Copious thanks for helping a fellow xy aficionado.
Your code uses a brute force method to alter Configuration but it does get the job done. Forty-six lines containing almost 2,000 characters to get what appeared like a fairly simple task accomplished. How long have you been at this? (And once learning ancient Greek seemed difficult.)
The menu is very well presented also. Suggest you submit this to the Script Library.
Copious thanks for helping a fellow xy aficionado.
-
serendipity
- Posts: 3360
- Joined: 07 May 2007 18:14
- Location: NJ/NY
Re: Thumbnails TB Button
You are welcome!aurumdigitus wrote:Wow, very nice work!
Your code uses a brute force method to alter Configuration but it does get the job done. Forty-six lines containing almost 2,000 characters to get what appeared like a fairly simple task accomplished. How long have you been at this? (And once learning ancient Greek seemed difficult.)
The menu is very well presented also. Suggest you submit this to the Script Library.
Copious thanks for helping a fellow xy aficionado.
The script can be made shorter, at the cost of no user input required or any questions asked. With one click and you can go from #1, #2, #3 to #2, #3, #1 or any other pattern. Let me know if you need that, it takes shorter than writing this post.
-
admin
- Site Admin
- Posts: 66312
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Thumbnails TB Button
I thought about this "sticky view toggle" and I kind of like it. A button that toggles between Details and the last other view selected using this button. Is that interesting?
FAQ | XY News RSS | XY X
-
serendipity
- Posts: 3360
- Joined: 07 May 2007 18:14
- Location: NJ/NY
Re: Thumbnails TB Button
Yes, that would be nice.admin wrote:I thought about this "sticky view toggle" and I kind of like it. A button that toggles between Details and the last other view selected using this button. Is that interesting?
-
admin
- Site Admin
- Posts: 66312
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Thumbnails TB Button
Hmm, should I add a special button for this, or rather tweak (could do via item in the button's context menu: "Remember last choice" or so?) the current "Toggle Details/Thumbs #1" button?serendipity wrote:Yes, that would be nice.admin wrote:I thought about this "sticky view toggle" and I kind of like it. A button that toggles between Details and the last other view selected using this button. Is that interesting?
FAQ | XY News RSS | XY X
-
aurumdigitus
- Posts: 1075
- Joined: 30 May 2008 21:02
- Location: Lake Erie
Re: Thumbnails TB Button
My original "ideal world" idea was to be able to right click on Toggle/Details button then click on Thumbnails 1, 2 or 3 then have that check mark lock there instead of being immutable from Thumbnails #1.
-
admin
- Site Admin
- Posts: 66312
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Thumbnails TB Button
OK, so only thumbnails (not any of the other views). That also fits better to the button's graphics. I really wonder if anybody could not use this functionality? I use this button very often and I'm always dissatisfied when being on Thumbs #3, and then the toggle brings me to Details, and then "back" to Thumbs #1! I'm tempted to make your wish the default behavior for this button...aurumdigitus wrote:My original "ideal world" idea was to be able to right click on Toggle/Details button then click on Thumbnails 1, 2 or 3 then have that check mark lock there instead of being immutable from Thumbnails #1.
FAQ | XY News RSS | XY X
XYplorer Beta Club