| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 4,809
» Latest member: Jasonher
» Forum threads: 7,893
» Forum posts: 42,973
Full Statistics
|
| Latest Threads |
How to restore tool docks...
Forum: General questions
Last Post: rich2005
Yesterday, 06:40 PM
» Replies: 3
» Views: 131
|
How to change mouse wheel...
Forum: General questions
Last Post: rich2005
Yesterday, 07:27 AM
» Replies: 9
» Views: 18,976
|
Software-update: Affinity...
Forum: Other graphics software
Last Post: denzjos
Yesterday, 06:50 AM
» Replies: 0
» Views: 197
|
Converting python plugin-...
Forum: Gimp 2.99 & Gimp 3.0
Last Post: migf1
06-15-2026, 01:01 PM
» Replies: 66
» Views: 57,553
|
A way to disable gimps ov...
Forum: General questions
Last Post: rich2005
06-15-2026, 08:17 AM
» Replies: 6
» Views: 550
|
Installing LayerFX for Gi...
Forum: General questions
Last Post: rich2005
06-14-2026, 01:51 PM
» Replies: 1
» Views: 168
|
Help with coloring comic ...
Forum: General questions
Last Post: denzjos
06-14-2026, 08:41 AM
» Replies: 2
» Views: 234
|
Is it possible to save TI...
Forum: Windows
Last Post: ScanEditor
06-13-2026, 07:48 PM
» Replies: 2
» Views: 224
|
GIMP windows oversized at...
Forum: Installation and usage
Last Post: JimT777
06-13-2026, 12:19 PM
» Replies: 1
» Views: 3,263
|
Most accurate way to colo...
Forum: General questions
Last Post: denzjos
06-13-2026, 10:18 AM
» Replies: 5
» Views: 412
|
|
|
| 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
|
|
|
|