| Welcome, Guest | 
 
You have to register before you can post on our site. 
 
 | 
 
  
 
 
| Latest Threads | 
 
AIMAGoR - Artificial IMAg...
 
Forum: Other graphics software 
Last Post: vitforlinux 
1 hour ago 
» Replies: 23 
» Views: 9,639
 | 
 
Isolate, select and copy/...
 
Forum: General questions 
Last Post: denzjos 
Yesterday, 06:22 PM 
» Replies: 5 
» Views: 258
 | 
 
"Plug-in crashed" on GIMP...
 
Forum: General questions 
Last Post: skullamrotis 
Yesterday, 04:14 PM 
» Replies: 2 
» Views: 312
 | 
 
RapidRAW
 
Forum: Other graphics software 
Last Post: denzjos 
Yesterday, 12:51 PM 
» Replies: 2 
» Views: 179
 | 
 
Tutoriel   installer Drea...
 
Forum: Tutorials and tips 
Last Post: meric57 
Yesterday, 07:45 AM 
» Replies: 0 
» Views: 6
 | 
 
Nouveau Arrivant sur le f...
 
Forum: Watercooler 
Last Post: meric57 
Yesterday, 06:45 AM 
» Replies: 0 
» Views: 8
 | 
 
Accessing GIMP’s internal...
 
Forum: General questions 
Last Post: rich2005 
11-02-2025, 12:35 PM 
» Replies: 1 
» Views: 156
 | 
 
Can't find path plug-in
 
Forum: General questions 
Last Post: programmer_ceds 
11-01-2025, 04:47 PM 
» Replies: 7 
» Views: 426
 | 
 
Gimp shows blank black sc...
 
Forum: Windows 
Last Post: rich2005 
11-01-2025, 09:01 AM 
» Replies: 1 
» Views: 159
 | 
 
Outlined and filled in 3....
 
Forum: General questions 
Last Post: rich2005 
10-31-2025, 04:42 PM 
» Replies: 2 
» Views: 239
 | 
 
 
 
 | 
  | 
 
 Let us say with petals | 
 
| 
Posted by: Gimphried  - 10-21-2021, 09:15 PM - Forum: Scripting questions 
- Replies (2)
 | 
 
	
		
  | 
		
			 
				1. Let us say with petals 
 
Make Flower has been written in Script-Fu by Daniel Bates in 2007. 
You can download the free open source Flower_Generator_Script_by_Insanity_Prevails.scm 
in the SamRocketMan's github reposity. 
 
Open the .scm script in the free editor Notepad++. 
 
script-fu-register in line 316 has strange NUL characters. 
Into the bargain, nowadays, the registration is in two steps. We need to indicate the Gimp menu to call this script in an additional call: 
 
Code: 
 (script-fu-menu-register "script-fu-make-flower" "<Image>/Filters/Render/Make Flower/")
  
However don't do it! We do not need to overload the Gimp Graphic User Interface (GUI) with additional menus that are not used daily. 
 
  We can call directly make-flower in the Script-Fu console of Gimp 2.10.28 without any registration. 
 
1. In Notepad++, click in the beginning of the line 12 before the opening parenthesis without selecting anything. 
2. Press the Notepad++ shortcut Ctrl+Alt+B. 
Notepad++ automatically selects the entire function make-flower from line 12 to line 312. 
This means that of course the parenthesis are well balanced. 
 
3. Press Ctrl+C in Windows to copy the function in the clipboard. 
4. Run Gimp. 
5. Gimp menu Filters > Script-Fu > Console 
;-> "Welcome to TinyScheme" appears in the top of the Script-Fu console. 
 
6. Paste the content of the clipboard in the input area of the Script-Fu console above the Help button. 
Press ENTER 
;-> Script-Fu replies by the name of the function: 
make-flower 
This means that there is not any errors of syntax! 
 
7. Copy in the clipboard by Ctrl+C the following call of the function with all parameters: 
Code: 
 (make-flower       500  2         2        30        1        5        '(230 120 210)  '(170 50 150)    '(170 170  50))
  
Press ENTER to run the TinyScheme function. 
;->     
Oops: 
Code: 
 Error: Bad syntax of binding spec in let* : ((theImage) (theActive) (base-layer) (flower-layer) (petal-layer) (petal2-layer) (petal3-layer) (petal4-layer) (petal5-layer) (petal6-layer) (shade-layer) (map-layer) (varX1) (varY1) (varX2)) 
  
 
8. In Notepad++, select the Let*'s local variables from line 26 to 46: 
Code: 
     (theImage) 
    (theActive) 
    (base-layer) 
    (flower-layer) 
    (petal-layer) 
    (petal2-layer) 
    (petal3-layer) 
    (petal4-layer) 
    (petal5-layer) 
    (petal6-layer) 
    (shade-layer) 
    (map-layer) 
 
    (varX1) 
    (varY1) 
    (varX2)
  
The initial value is missing for each local variable. Fortunately, they are all integers. 
 
10. To fix the issue, Notepad++ menu Search > Replace... 
11. In the dlgbox "Replace", 2nd tab "Replace",  
Find what: ")" 
Enter the closing parenthesis without the double quotes. 
 
Replace with: " 0)" 
Enter a space separator before the initial value, then the initial value 0 and the closing parenthesis. 
Do not enter the double quotes. 
 
Check the option [x] in selection 
Press the Replace All button 
The expected result must be: 
Code: 
     (theImage 0) 
    (theActive 0) 
    (base-layer 0) 
    (flower-layer 0) 
    (petal-layer 0) 
    (petal2-layer 0) 
    (petal3-layer 0) 
    (petal4-layer 0) 
    (petal5-layer 0) 
    (petal6-layer 0) 
    (shade-layer 0) 
    (map-layer 0) 
 
    (varX1 0) 
    (varY1 0) 
    (varX2 0)
  
12. Repeat steps 1-7 
;-> The script draws the pink flower with 8 petals on 500x500 pixels. 
 
 
 
  make-flowerPetal8.webp (Size: 6.96 KB / Downloads: 355)
 
 
The Layer window shows the following layers:
- Shading
 
 
- Centre Shading
 
 
- Centre
 
 
- Flower
 
 
- Background
 
  
			
			
		 | 
	 
	
		
			
				 
			
		 | 
	 
 
 | 
 
 
 
 
 
 
 
 
 
|   Default Directory | 
 
| 
Posted by: zeuspaul  - 10-19-2021, 10:01 PM - Forum: General questions 
- Replies (3)
 | 
 
	
		
  | 
		
			 
				Is there a way to set a default folder for opening and saving files?  For one reason or another I have to reopen Gimp maybe a freeze in Gimp or my computer has to be booted for some reason. 
 
Every time I open Gimp it wants to go to recent files and then I have to navigated down through a file tree to get to the folder that contains my files.  Then I have to remember to navigate once again to save a file to the same file folder or files end up where I don't want them.  Once I do it once in a session it remembers for the rest of the session. 
 
Can I set this up to remember the same folder I use for all of my Gimp work?  I haven't found anything in edit preferences.
			 
			
		 | 
	 
	
		
			
				 
			
		 | 
	 
 
 | 
 
 
 
|   Thank you Rich. | 
 
| 
Posted by: david  - 10-18-2021, 09:25 AM - Forum: Watercooler 
- No Replies
 | 
 
	
		
  | 
		
			 
				Last night I decided to install GIMP 2.10.28 from the Panda Jim PPA.  
Thanks to all the information and files provided by Rich, it was a straightforward and simple process. 
 
I now have a fully working installation with the latest GMIC.
			 
			
		 | 
	 
	
		
			
				 
			
		 | 
	 
 
 | 
 
 
 
 
 |