RSS/Atom feed Twitter
Site is read-only, email is disabled

Plugin registration question

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

3 of 3 messages available
Toggle history

Please log in to manage your subscriptions.

Plugin registration question Jon Decker 03 Apr 09:54
  Plugin registration question Ofnuts 04 Apr 19:09
   Plugin registration question Joao S. O. Bueno 05 Apr 12:23
Jon Decker
2012-04-03 09:54:44 UTC (over 12 years ago)

Plugin registration question

Hello

The plugin I have been developing doesn't really relate to individual images (its more of an extension). In my registration call, how do I make it so that the listing in the menu is never grayed out? Currently I just open any image to make the entry active, but I'm sure there is a way to make certain entries always active. I'm using the gimpplugin module. Thanks

Ofnuts
2012-04-04 19:09:50 UTC (over 12 years ago)

Plugin registration question

On 04/03/2012 11:54 AM, Jon Decker wrote:

Hello

The plugin I have been developing doesn't really relate to individual images (its more of an extension). In my registration call, how do I make it so that the listing in the menu is never grayed out? Currently I just open any image to make the entry active, but I'm sure there is a way to make certain entries always active. I'm using the gimpplugin module. Thanks

If you define it without parameters is will always be active: --------------------
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from gimpfu import *

def always(): pdb.gimp_message('Running')

register( "always","Always...","Always...", "X","X","2012",
"Always...",
"",
[],[],
always,
menu="/File",
)

main()
--------------------

Joao S. O. Bueno
2012-04-05 12:23:06 UTC (over 12 years ago)

Plugin registration question

On 4 April 2012 16:09, Ofnuts wrote:

On 04/03/2012 11:54 AM, Jon Decker wrote:

Hello

The plugin I have been developing doesn't really relate to individual images (its more of an extension).  In my registration call, how do I make it so that the listing in the menu is never grayed out?  Currently I just open any image to make the entry active, but I'm sure there is a way to make certain entries always active.  I'm using the gimpplugin module.  Thanks

If you define it without parameters is will always be active:

I t is not "without parameters" - it is ratehr, without an image type - the string right before the parameters sequence.

You can have an "always active" plug-in that accepts parameters, of course - as all the scripts in the file->create->logo menu.

--------------------
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from gimpfu import *

def always():    pdb.gimp_message('Running')

register(    "always","Always...","Always...",    "X","X","2012",
   "Always...",
   "",
   [],[],
   always,
   menu="/File",
)

main()
--------------------

_______________________________________________ gimp-developer-list mailing list
gimp-developer-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gimp-developer-list