Welcome, Guest |
You have to register before you can post on our site.
|
Latest Threads |
files missing after insta...
Forum: Older Gimp versions (2.8, 2.6....)
Last Post: denzjos
9 hours ago
» Replies: 4
» Views: 365
|
Simplifying a path
Forum: Extending the GIMP
Last Post: Infinimitsu
11 hours ago
» Replies: 39
» Views: 35,117
|
Is there any version wher...
Forum: Older Gimp versions (2.8, 2.6....)
Last Post: HavingTooMuchFun
Yesterday, 08:24 AM
» Replies: 2
» Views: 519
|
.pcd files issue?
Forum: OSX
Last Post: rich2005
Yesterday, 07:49 AM
» Replies: 1
» Views: 201
|
How do I uninstall GIMP 3...
Forum: Linux and other Unixen
Last Post: Ofnuts
09-15-2025, 07:02 AM
» Replies: 1
» Views: 355
|
AI Gimp Plugins
Forum: Watercooler
Last Post: merlilderman
09-14-2025, 04:16 PM
» Replies: 21
» Views: 68,942
|
How to make a watermark o...
Forum: General questions
Last Post: kyolim
09-13-2025, 10:05 PM
» Replies: 5
» Views: 14,485
|
Linux command that does e...
Forum: Other graphics software
Last Post: rich2005
09-13-2025, 06:06 PM
» Replies: 1
» Views: 735
|
reliable Gimp 2.10.38 dow...
Forum: Older Gimp versions (2.8, 2.6....)
Last Post: denzjos
09-13-2025, 05:20 PM
» Replies: 2
» Views: 635
|
Batch Color Saturation
Forum: Extending the GIMP
Last Post: rich2005
09-13-2025, 07:53 AM
» Replies: 15
» Views: 12,329
|
|
|
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
|
|
|
|