| Welcome, Guest |
You have to register before you can post on our site.
|
| Latest Threads |
Gimp 3.2.4 tool options d...
Forum: General questions
Last Post: bboma
8 hours ago
» Replies: 0
» Views: 51
|
Arrow Script
Forum: Extending the GIMP
Last Post: bboma
Yesterday, 05:23 PM
» Replies: 134
» Views: 271,153
|
Linux LMDE changing defau...
Forum: General questions
Last Post: Green Pig
Yesterday, 01:13 PM
» Replies: 2
» Views: 122
|
How to fine-tune the ligh...
Forum: General questions
Last Post: IndiePubber
Yesterday, 08:57 AM
» Replies: 8
» Views: 297
|
Remove error created Temp...
Forum: General questions
Last Post: JB10
06-25-2026, 08:27 PM
» Replies: 5
» Views: 301
|
apply a certain gradient ...
Forum: General questions
Last Post: saint_m
06-25-2026, 05:22 PM
» Replies: 8
» Views: 1,439
|
Gimp 3.2.4 NO Color Theme...
Forum: General questions
Last Post: corawilliamlee
06-25-2026, 08:49 AM
» Replies: 1
» Views: 697
|
Most accurate way to colo...
Forum: General questions
Last Post: IndiePubber
06-25-2026, 06:58 AM
» Replies: 8
» Views: 738
|
Theming 3.2 ( in my case ...
Forum: Installation and usage
Last Post: bluedxca93
06-24-2026, 01:24 PM
» Replies: 6
» Views: 426
|
How would I be able to be...
Forum: General questions
Last Post: sallyanne
06-24-2026, 12:29 PM
» Replies: 5
» Views: 356
|
|
|
| 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
|
|
|
|