| Welcome, Guest |
You have to register before you can post on our site.
|
| Latest Threads |
Seeking Gimp 3 version of...
Forum: General questions
Last Post: kju135
25 minutes ago
» Replies: 4
» Views: 1,548
|
How to use script-fu for ...
Forum: Scripting questions
Last Post: rich2005
3 hours ago
» Replies: 2
» Views: 73
|
DOSBox release 4 December...
Forum: Other graphics software
Last Post: denzjos
Yesterday, 07:48 AM
» Replies: 4
» Views: 4,541
|
Wacom tablet with GIMP 3....
Forum: General questions
Last Post: Grimpo
Yesterday, 12:34 AM
» Replies: 9
» Views: 769
|
Separation-Luminosity-Cou...
Forum: Extending the GIMP
Last Post: denzjos
09-01-2026, 04:32 PM
» Replies: 0
» Views: 123
|
Gimp 3.0 to 3.2 AppImage ...
Forum: Linux and other Unixen
Last Post: CmykStudent_
08-31-2026, 11:37 AM
» Replies: 2
» Views: 177
|
bunnywaffle plugins
Forum: Extending the GIMP
Last Post: denzjos
08-30-2026, 09:20 AM
» Replies: 4
» Views: 388
|
adding color after using ...
Forum: General questions
Last Post: CmykStudent_
08-29-2026, 06:14 PM
» Replies: 16
» Views: 1,040
|
Should I reinstall
Forum: General questions
Last Post: Grimpo
08-29-2026, 10:26 AM
» Replies: 6
» Views: 426
|
Rotate tool in 2.10 blurr...
Forum: Gimp 2.10
Last Post: CmykStudent_
08-27-2026, 05:28 PM
» Replies: 12
» Views: 29,642
|
|
|
| several register by python file ? |
|
Posted by: jacques_duflos - 07-25-2023, 07:07 PM - Forum: Scripting questions
- Replies (3)
|
 |
I am doing a script that I want to execute very quickly with a shortcut, or more slowly with a option window. Something similar to "save" (quickly executed with ctrl+s) and "save as ..." (with a window to precise options). How should I do ?
- Should I do two completely separated plug-ins ?
- Or one plug-in with two python files in it (one importing the other I guess) ?
- Or can I put several register function in one python script ?
- other ?
I would say the third option is the best, but as I can't remember having seen such thing anywhere, I wonder if there are habits or rules about that.
The code would look like that :
Code:
from gimpfu import *
def slow_function(image, layer, other, options):
#some code
def quick_function(image, layer):
slow_function(image, layer, defaults, values)
register(
"python-fu-quick-function",
"description",
"description",
"Your Name",
"Your Name",
"2023",
"<Image>/Filters/quick function",
"*",
[],
[],
quick_function)
register(
"python-fu-slow-function",
"description",
"description",
"Your Name",
"Your Name",
"2023",
"<Image>/Filters/slow function ...",
"*",
[
(PF_IMAGE, 'image', 'Image', None),
(PF_OPTION, 'some option')],
(PF_OPTION, 'some other option')]
[],
slow_function)
main()
|
|
|
| Github for gimp plug ins |
|
Posted by: jacques_duflos - 07-25-2023, 01:16 AM - Forum: Extending the GIMP
- Replies (1)
|
 |
Is it a good idea to use github for creating and using gimp plug-ins ? I guess it is very useful to share them, and for team work. But is it useful to clone a repository directly in your plug-in folder ? will it keep the plug-ins up to date ?
I just started using it but I'm still very new to it. If anyone has pieces of advice, experience or whatever please share
|
|
|
|