GIMP Chat http://gimpchat.com/ |
|
iccii-aquabou.scm http://gimpchat.com/viewtopic.php?f=9&t=19390 |
Page 1 of 2 |
Author: | Jappaloe63 [ Sun May 16, 2021 11:48 am ] | |||
Post subject: | iccii-aquabou.scm | |||
I sometimes use this script in Gimp 2.8. Could it be fixed so I can use it in Gimp 2.10!
|
Author: | Nidhogg [ Sun May 16, 2021 12:50 pm ] |
Post subject: | Re: iccii-aquabou.scm |
File->Create->AquaPro2 edit: Fixed displace type & LINEAR. Download from post #5. Attachment: Aquapill-Round-Hrule-Logo.png [ 175.44 KiB | Viewed 4286 times ] |
Author: | Jappaloe63 [ Sun May 16, 2021 1:05 pm ] |
Post subject: | Re: iccii-aquabou.scm |
Thank you! |
Author: | Jappaloe63 [ Wed May 19, 2021 11:59 am ] |
Post subject: | Re: iccii-aquabou.scm |
Script works in 2.10. I did notice that if I want to use a gradient or a pattern the script will not work. Do you have a solution for that? |
Author: | Nidhogg [ Wed May 19, 2021 12:41 pm ] | ||
Post subject: | Re: iccii-aquabou.scm | ||
Yes, fixed. Attachment: GradienPill.png [ 95.47 KiB | Viewed 4092 times ] Attachment: TexturePill.png [ 165.42 KiB | Viewed 4092 times ]
|
Author: | Jappaloe63 [ Wed May 19, 2021 1:16 pm ] |
Post subject: | Re: iccii-aquabou.scm |
Thanks again! |
Author: | Pat625 [ Wed May 19, 2021 3:45 pm ] |
Post subject: | Re: iccii-aquabou.scm |
Thank you, Jappaloe63, for reminding me of this nice filter, and you, Nidhogg for being so nice and fixing it for all of us! Attachment: Thanks.jpg [ 165.96 KiB | Viewed 4059 times ] |
Author: | level_0 [ Thu May 20, 2021 12:22 pm ] |
Post subject: | Re: iccii-aquabou.scm |
![]() ![]() ![]() |
Author: | Nidhogg [ Mon May 31, 2021 4:16 am ] |
Post subject: | Re: iccii-aquabou.scm |
I just noticed the script has 4 options, button still had the old "Toolbox" entry. You can fix it by editing line 655 with: "<Image>/File/Create/AquaPro2/Button..." or download again from post 5 |
Author: | racer-x [ Mon May 31, 2021 4:59 am ] |
Post subject: | Re: iccii-aquabou.scm |
Yes, lines 428, 518, 655 and 838 should to be edited. I did that when I first tried the script. |
Author: | Jappaloe63 [ Mon May 31, 2021 5:00 am ] | ||
Post subject: | Re: iccii-aquabou.scm | ||
Thank you ... now I am really completely satisfied!
|
Author: | Krikor [ Mon May 31, 2021 1:29 pm ] |
Post subject: | Re: iccii-aquabou.scm |
I didn't know this script. I liked it a lot, a nice result in a simple and fast way. Jappaloe63 thanks for commenting on this script. Nidhogg, thx for making it functional again! However... One thing I noticed from the first time I tested the script is that it doesn't warn about the user not having the default font. I don't have the font classicheavylight. The script selects another font and runs without giving the user any information about which font they are using. I also noticed that with the Logo In Pill: 01- If I enter 3 separate words in the Text field, 3 individual blocks are generated for each word. 02- But if I enter only one word, instead of generating a block with this word, the script generates a block for each letter of the word. This result (individual blocks for letters of a word) is welcome, but it would be nice if the script also generated an entire word per block. Attachment: LIP.png [ 268.14 KiB | Viewed 2801 times ] Thx. Edited (PS) I think I get it... with the Button option you can generate a whole word per block. Attachment: LIP02.png [ 118.5 KiB | Viewed 2798 times ] |
Author: | Nidhogg [ Mon May 31, 2021 6:12 pm ] |
Post subject: | Re: iccii-aquabou.scm |
Yeah that's how it works. I didn't want to edit the font name because I'm on Linux, and you never know what fonts people have installed on their systems. Just replaced "classicheavylight" to "Proxima Nova Alt", that I have installed and it worked. It's in the lines 668-670 and 851-853 under ; Default setting |
Author: | PixLab [ Mon May 31, 2021 9:08 pm ] |
Post subject: | Re: iccii-aquabou.scm |
This is an Awesome script!
![]() |
Author: | level_0 [ Tue Jun 01, 2021 2:11 am ] |
Post subject: | Re: iccii-aquabou.scm |
![]() |
Author: | AlSchemist [ Tue Nov 16, 2021 6:00 pm ] |
Post subject: | iccii-aquabou.scm v2_10_28 No LONGER deprecated |
Hello Nidhogg Attachment: NoLongerDeprecated.jpg [ 140.67 KiB | Viewed 1526 times ] The historical comment in Japanese about strbreakup highlighted in yellow "Making it easier to split strings, so improve them" has been kept as an encouragement. Introducing iccii-aquabou v2.10.28 22 KB Aqua style pill buttons Attachment: Firstly, AlSchemist added you in the credits. ![]() Nidhogg wrote: File > Create >AquaPro2 Caution: there are not any new features. It is a version for ![]() This version includes shortcuts, separated menu registration, some optimizations about constants "(* 512 2)" => "1024", new pretty-print with aligned parenthesis and longer lines of Scheme beyond 80 char per line in full screen Notepad++. AlSchemist removed deprecated API and (- 867 333) => 534 lines of Scheme. ![]() This main subject of this article is: 1. How to find deprecated API in Gimp Script-Fu? Gimp menu "Filters" > "Script-Fu" > "Console": Copy and paste the following function in the input area of the console then validate by ENTER: Code: Select all (define (deprecated? strFnc) ;-> Script-Fu replies by the name of the function deprecated? meaning that the Scheme code is OK. Ask Script-Fu: After the name of the function, enter as parameter directly the name of any function such as gimp-version between double quote as a string: Code: Select all (deprecated? "gimp-version") ;-> #f gimp-version is not deprecated. On the other hand: Code: Select all (deprecated? "gimp-image-add-layer") ;-> #t If you try unknown name of function, deprecated? will fail to preserve the future: Code: Select all (deprecated? "unknown") ;-> #f However parsing a function from iccii-aquabou.scm is out of the scope of this post. Send a Private Message to AlSchemist if you are interested in the code in Scheme of deprecated-list. In short, hereafter enclosed is the result for the first big function of the Aqua style button: Code: Select all (deprecated-list script-fu-aqua-button2) ;-> ("gimp-blend" "gimp-drawable-set-visible" "gimp-ellipse-select" "gimp-gradients-get-gradient" "gimp-gradients-set-gradient" "gimp-image-add-layer" "gimp-palette-get-background" "gimp-palette-get-foreground" "gimp-palette-set-background" "gimp-palette-set-foreground" "gimp-patterns-get-pattern" "gimp-patterns-set-pattern" "gimp-perspective" "gimp-rect-select" "gimp-selection-layer-alpha") We can classify the deprecated API in three families from easy to difficult:
Stay tuned to sweeten the pill! ![]() |
Author: | mackenzieh [ Tue Nov 16, 2021 9:31 pm ] |
Post subject: | Re: iccii-aquabou.scm |
Examples: Logo in Pill: ![]() Button: ![]() |
Author: | PixLab [ Wed Nov 17, 2021 1:58 am ] |
Post subject: | Re: iccii-aquabou.scm v2_10_28 No LONGER deprecated |
AlSchemist wrote: Hello Nidhogg Attachment: The attachment NoLongerDeprecated.jpg is no longer available The historical comment in Japanese about strbreakup highlighted in yellow "Making it easier to split strings, so improve them" has been kept as an encouragement. Introducing iccii-aquabou v2.10.28 22 KB Aqua style pill buttons Attachment: The attachment iccii-aquabou2_10_28.zip is no longer available Firstly, AlSchemist added you in the credits. ![]() Nidhogg wrote: File > Create >AquaPro2 Caution: there are not any new features. It is a version for ![]() This version includes shortcuts, separated menu registration, some optimizations about constants "(* 512 2)" => "1024", new pretty-print with aligned parenthesis and longer lines of Scheme beyond 80 char per line in full screen Notepad++. AlSchemist removed deprecated API and (- 867 333) => 534 lines of Scheme. ![]() This main subject of this article is: 1. How to find deprecated API in Gimp Script-Fu? Gimp menu "Filters" > "Script-Fu" > "Console": Copy and paste the following function in the input area of the console then validate by ENTER: Code: Select all (define (deprecated? strFnc) ;-> Script-Fu replies by the name of the function deprecated? meaning that the Scheme code is OK. Ask Script-Fu: After the name of the function, enter as parameter directly the name of any function such as gimp-version between double quote as a string: Code: Select all (deprecated? "gimp-version") ;-> #f gimp-version is not deprecated. On the other hand: Code: Select all (deprecated? "gimp-image-add-layer") ;-> #t If you try unknown name of function, deprecated? will fail to preserve the future: Code: Select all (deprecated? "unknown") ;-> #f However parsing a function from iccii-aquabou.scm is out of the scope of this post. Send a Private Message to AlSchemist if you are interested in the code in Scheme of deprecated-list. In short, hereafter enclosed is the result for the first big function of the Aqua style button: Code: Select all (deprecated-list script-fu-aqua-button2) ;-> ("gimp-blend" "gimp-drawable-set-visible" "gimp-ellipse-select" "gimp-gradients-get-gradient" "gimp-gradients-set-gradient" "gimp-image-add-layer" "gimp-palette-get-background" "gimp-palette-get-foreground" "gimp-palette-set-background" "gimp-palette-set-foreground" "gimp-patterns-get-pattern" "gimp-patterns-set-pattern" "gimp-perspective" "gimp-rect-select" "gimp-selection-layer-alpha") We can classify the deprecated API in three families from easy to difficult:
Stay tuned to sweeten the pill! ![]() AlSchemist seems to have a great knowledge about tiny script PixLab (a.k.a. Patrice) is no programmer at All, but if you can tell to AlSchemist what Patrice did found about the original script that make Patrice feel "limited" in many ways with the original script (Patrice did not try the one from AlSchemist yet, he will wait) Limitation about size of the font with "File/Create/AquaPro2/Button..."> Patrice cannot make font bigger than 685 pixels as at 686 he got an error, with the default font(which I don't have), and with another font, Patrice can go up to 697 pixels, but at 698 he got the same type of error. Same error appear with "File/Create/AquaPro2/Logo in Pill..." Thus this tells him that there is limitation somewhere... Same limitation/Error about the "File/Create/AquaPro2/Hrule..." about the "width" and "Height" Same Error/Limitation about the "File/Create/AquaPro2/Round..." about the radius All error got this message (only the floating point number change): Code: Select all Error: Procedure execution of plug-in-gauss-rle2 failed on invalid input arguments: Procedure 'plug-in-gauss-rle2' has been called with value '860.504202' for argument 'horizontal' (#4, type gdouble). This value is out of range. Attachment: screenshot_20211117-121912.png [ 23.4 KiB | Viewed 1506 times ] Also, Patrice found extremely annoying to not have a slider on the UI to increase quickly the font size and other options, so he did discovered by comparing some tinyscripts that by changing only 1 parameter and 1 parameter only Code: Select all SF-ADJUSTMENT _"Font Size (pixels)" '(75 2 2048 1 1 0 1) He now got a slider and an input box with arrows up and down at the same time (no need to tell how Patrice is now happy), but in the end why tinyscripter don't do that? Anyway thanks AlSchemist for me for having a look at this script ![]() In the very end I'm exhausted to speak about me at the third person, and about you at the third of the third person, my next post will be back to "normal mode" ![]() |
Author: | Nidhogg [ Wed Nov 17, 2021 9:46 am ] |
Post subject: | Re: iccii-aquabou.scm |
AlSchemist, thanks for sweetening the pill. It turned 20 years old 2 months ago! |
Author: | AlSchemist [ Wed Nov 17, 2021 4:40 pm ] |
Post subject: | Is there a limit in gauss function? |
![]() PixLab wrote: SF-ADJUSTMENT _"Font Size (pixels)" '(75 2 2048 1 1 0 0) The upper limit "2048" is a little bit too big. ![]() ![]() The original version with 867 lines said:
Is there a limit in gauss function? Copy and paste the following tool in the Script-Fu console: Code: Select all (define (proc-arg-search proc token) ; search token in all arguments of PDB functions matching proc Then ask the Script-Fu console by: Code: Select all (proc-arg-search "gauss" "500") ;-> Script-Fu will tell you a long story about the known limit "500" in the gauss procedures: plug-in-gauss-iir2: horizontal: Horizontal radius of gaussian blur (in pixels (0 <= horizontal <= 500) plug-in-gauss-iir2: vertical: Vertical radius of gaussian blur (in pixels (0 <= vertical <= 500) plug-in-gauss: horizontal: Horizontal radius of gaussian blur (in pixels (0 <= horizontal <= 500) plug-in-gauss: vertical: Vertical radius of gaussian blur (in pixels (0 <= vertical <= 500) plug-in-gauss-rle2: horizontal: Horizontal radius of gaussian blur (in pixels (0 <= horizontal <= 500) plug-in-gauss-rle2: vertical: Vertical radius of gaussian blur (in pixels (0 <= vertical <= 500) plug-in-gauss-iir: radius: Radius of gaussian blur (in pixels (0 <= radius <= 500) plug-in-gauss-rle: radius: Radius of gaussian blur (in pixels (0 <= radius <= 500) ![]() Anyway, replace all calls of plug-in-gauss-rle2 in Aqua Btn with our new "gauss" function: Code: Select all (define (gauss run-mode image drawable horizontal vertical) gauss calls plug-in-gauss-rle2 with the same parameters but within the limit of 500. The entire region will be not processed in the giant Aqua pill but the issue is solved. Drawing is longer. ![]() ![]() |
Page 1 of 2 | All times are UTC - 5 hours [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |