| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 4,949
» Latest member: GlennNag
» Forum threads: 7,975
» Forum posts: 43,381
Full Statistics
|
| Latest Threads |
Gimp Background colour.
Forum: Installation and usage
Last Post: MrsP-from-C
50 minutes ago
» Replies: 3
» Views: 85
|
Resize multiple PDF pages...
Forum: General questions
Last Post: pascal079
1 hour ago
» Replies: 0
» Views: 8
|
is there a crop tool sett...
Forum: General questions
Last Post: John A.
Yesterday, 07:45 PM
» Replies: 2
» Views: 136
|
Resize multiple PDF pages...
Forum: General questions
Last Post: pascal079
Yesterday, 05:46 PM
» Replies: 0
» Views: 1
|
Building a printable flye...
Forum: General questions
Last Post: rich2005
Yesterday, 04:00 PM
» Replies: 3
» Views: 125
|
3.0 Batch Image Watermark...
Forum: Extending the GIMP
Last Post: rich2005
Yesterday, 09:31 AM
» Replies: 1
» Views: 112
|
How to turn off Lighting ...
Forum: General questions
Last Post: sallyanne
Yesterday, 08:06 AM
» Replies: 5
» Views: 217
|
Gimp3 ubuntu 24.04 favour...
Forum: Extending the GIMP
Last Post: rich2005
09-10-2026, 05:44 PM
» Replies: 4
» Views: 1,661
|
ofn-flatten-cylinder
Forum: Extending the GIMP
Last Post: Aquatikelfik
09-10-2026, 10:49 AM
» Replies: 14
» Views: 17,442
|
Not diamonds
Forum: Gallery
Last Post: rich2005
09-09-2026, 09:54 AM
» Replies: 2
» Views: 234
|
|
|
| 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
|
|
|
|