| Welcome, Guest |
You have to register before you can post on our site.
|
| Latest Threads |
GIMP v3.2.4 failed to lau...
Forum: General questions
Last Post: denzjos
10 hours ago
» Replies: 2
» Views: 152
|
logo for website profile ...
Forum: General questions
Last Post: BezierCurve
Today, 03:52 AM
» Replies: 7
» Views: 992
|
.tif Unknown Filetype to ...
Forum: General questions
Last Post: ajax
05-11-2026, 02:12 AM
» Replies: 3
» Views: 268
|
Linear color profile not ...
Forum: General questions
Last Post: rich2005
05-10-2026, 08:09 AM
» Replies: 1
» Views: 187
|
Plugins & Scripts not fou...
Forum: General questions
Last Post: rich2005
05-10-2026, 07:45 AM
» Replies: 4
» Views: 394
|
new plugin colour grading...
Forum: Extending the GIMP
Last Post: rich2005
05-08-2026, 08:29 AM
» Replies: 5
» Views: 900
|
ExifToolGUI and ExifTool ...
Forum: Other graphics software
Last Post: denzjos
05-07-2026, 09:07 AM
» Replies: 14
» Views: 17,308
|
Langage français de l'int...
Forum: OSX
Last Post: rich2005
05-06-2026, 07:28 PM
» Replies: 1
» Views: 640
|
Locally Installed Help is...
Forum: General questions
Last Post: rich2005
05-06-2026, 10:10 AM
» Replies: 3
» Views: 843
|
scheme : error in vector
Forum: Extending the GIMP
Last Post: geka
05-06-2026, 05:40 AM
» Replies: 2
» Views: 399
|
|
|
| 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
|
|
|
|