It is currently Mon May 06, 2024 3:26 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 22 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Plugin Manager - error
PostPosted: Fri Jun 03, 2011 11:59 am  (#1) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2255
Location: Poland
GIMP Version: 2.6.11; 2.
Operating System: Windows
OS Version: XP - SP3
GIMP Experience: Beginner Level



Surely you know the GIMP Unified Resource Manager (GURM)
http://registry.gimp.org/node/13473.
This plugin is the key to quickly launch GIMP.
RobA, probably busy with other things, he was not developing (from 2009)
I'm trying to adapt the code Brush Manager (Sean Bogie) to transfer the selected files (not directory contents).
OK (no refresh) and are other manager for that purpose but ...
... Python plugin can be run before the start of the Gimp - so that such modification allowed for easier management of selected stocks GIMP eg fonts, scripts, plugins (because sometimes there are several different versions).
Because I can not write programs - code contained in the appendix gives an error
Windows Error 267
Can anyone solve the problem - how to do it?


Attachments:
Plugin Manager.png
Plugin Manager.png [ 11.32 KiB | Viewed 2967 times ]
PLUGIN MANAGER.ZIP [2.27 KiB]
Downloaded 112 times

_________________
Image

Slava
Ukraini!
Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Plugin Manager - error
PostPosted: Fri Jun 03, 2011 12:54 pm  (#2) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
Quote:
... Python plugin can be run before the start of the Gimp - so that such modification allowed for easier management of selected stocks GIMP eg fonts, scripts, plugins (because sometimes there are several different versions).


Maybe your problem is in that assumption:
python script may run even if gimp is closed only IF they don't contain call to gimp procedures

That is obviously very rare, for python script written for gimp.
.. i am not sure for the brush manager but a GIMP py script that do not contain any calls to gimp procedures seems if not impossible highly improbable

a file manager would be no better to move files around ?

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: Plugin Manager - error
PostPosted: Fri Jun 03, 2011 1:04 pm  (#3) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Actually Gimp loads very fast for me (within 20 seconds), with just brushes,scripts,and patterns stored until needed.If i need PS filters or any other pixel filter for that matter i just use shellout, and call an outside program.
I see no need for a plug-in loader. :)
I do not see how you will be able to load any filters without a restart and re-initialization anyways.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Plugin Manager - error
PostPosted: Fri Jun 03, 2011 1:16 pm  (#4) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
Gurm may be easily modified to manage also plugins and python scripts

But yes changes will be applied only after restart, there is no way to automatically reload gimp (i asked about on different forum ,even here, no solution was found)

But if is a script indipendent from gimp to take care, that will be not a problem will just be needed first to do the "plugin" file transfert then load gimp

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: Plugin Manager - error
PostPosted: Fri Jun 03, 2011 2:02 pm  (#5) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2255
Location: Poland
Sometimes it is just that they operate in three versions (the choice depends on the user - for example? - http://registry.gimp.org/node/25219#comment-11895).
Brush Plugin Manager (Manager PSPI-too) can start before the start of the GIMP (GTK when - as described by Ofnuts § Lyle http://www.gimpchat.com/viewtopic.php?f=9&t=1280&hilit=Ghost )
This is one of many possibilities - I ask because I was interested in:
the problem of transfer of selected files from the directory appears frequently - so far I'm looking for a solution - is this possible?

_________________
Image

Slava
Ukraini!


Top
 Post subject: Re: Plugin Manager - error
PostPosted: Fri Jun 03, 2011 3:08 pm  (#6) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
The first link seems wrong : apparently is unrelated

the second link seems more demostrate my objection:
Ghost Diagram it is NOT a script for gimp even if is a Python script, quoting from the first message
Quote:
"The weird thing about this script is that it isn't a GIMP Python plugin but heavily requires GTK and other GIMP components "

So it is normal that doesn't require gimp loaded to work (if not as workaround as was doing lylejk )

I didn't want say that can't be done by f a python script,
my point is that can't be done by a gimp python script, because such script suppose and usually require gimp be loaded

But maybe Gurm and similars script may be a exception,
i still wonder if would be no simpler for you modify a couple of line of that script to add plugin and python script to the other resources to manage (again only drawback would be the need to restart gimp for the changes to become effective )

that look really much esier , would not solve your problem ?

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: Plugin Manager - error
PostPosted: Fri Jun 03, 2011 3:51 pm  (#7) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2255
Location: Poland
Thank you very much for your interest and suggestions.
The first link - I wanted to show that it can resolve the problem of choosing plugin (another example-png or apng?)
The second link - just a way how to run *. py (needed libraries GTK)
Old link - it works
http://imageshack.us/clip/my-videos/3/4a9.mp4/
The idea may be stupid - just for my curiosity - is there a solution to transfer some files from directory - using Python?
If yes - in GURM - was that you can manage all the resources (although some after restart Gimp -
like after the changes Edit -> Preference ...)

_________________
Image

Slava
Ukraini!


Top
 Post subject: Re: Plugin Manager - error
PostPosted: Fri Jun 03, 2011 4:57 pm  (#8) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
To use gurm to handle all resources is just needed add a couple of lines of code,(to add files with "exe" and "py" extension to the resources to handle )

But ...yes python script may do file transfert

Anyway pytwhon is not really my piece of cake and we are tresspassing the limit of my knoledge on the matter , so i fear i can't help more ...

well i may even try to edit gurm to include plugins, but that would be easy for others (as robA, pajnekj, ofnuts ) instead for me would be quite a effort (even if i would need to do for myself,)

Still i have no clear why you prefer solve with file transfer ...is to avoid to reload gimp ?
Remember that in any case no change will be applied if gimp is alreadyopened (only cchanges would be error messages if you remove plugins and then try to use them...but added plugin will not work before reloading )

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: Plugin Manager - error
PostPosted: Sat Jun 04, 2011 2:53 am  (#9) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2255
Location: Poland
In GURM moving directory, you can not see what files are concerned (unless you create a directory for each file).
Probably - if one could move files - it would be used by RobA ...
Well, you're right, I can handle the old way.
Thanks.

_________________
Image

Slava
Ukraini!


Top
 Post subject: Re: Plugin Manager - error
PostPosted: Sun Jun 05, 2011 10:33 am  (#10) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
Moving plugins was never added to GURM becuase it never made any sense to me since it can't reload.

Personally, I don't even use it to manager scm scripts.

One thing that you might find useful... run gimp as another user.

In windows I have a shortcut to run gimp as a different user I created just for that purpose. This user has no plugins scripts or anything in their home gimp directory, so it is like launching freshly installed gimp.

You could do the same but have different sets of plugins in different home folders.

-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 Post subject: Re: Plugin Manager - error
PostPosted: Sun Jun 05, 2011 10:38 am  (#11) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Hah! That's an excellent idea Rob.This would be great for tutorial designing.As you wouldn't have to alter your personal Gimp program at all (making fonts bigger and screen adjustments) just the new user interface. :) .. Great tip!

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Plugin Manager - error
PostPosted: Wed Jul 13, 2011 1:53 pm  (#12) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2255
Location: Poland
I found another solution [Windows only]
Free: Plug-In Switch 1.3
http://www.cybia.co.uk/pluginswitch.html
of calling PluginSwitch-8bf.py.[edit line 11]

#!/usr/bin/env python
# This plugin requires the installation of the Plug-In Switch 1.3 http://www.cybia.co.uk/pluginswitch.html
# The idea taken from RobA Shellout http://registry.gimp.org/node/24977 and GURM http://registry.gimp.org/node/13473

from gimpfu import *
import shlex
import subprocess
import os, sys

def plugin_main(img, drawable):
  command = "\"C:\\Documents and Settings\\MareroQ\\Cybia\\PluginSwitch.exe\" \"" + "\"" #<<--EDIT THIS<<--(Directory, where you place PluginSwitch.exe)
  args = shlex.split(command)
  child = subprocess.Popen(args, shell=False)

register(
        "python_fu_PluginSwitch",
        "PluginSwitch",
        "PluginSwitch",
        "GimpChat",
        "GimpChat",
        "2011",
        "<Image>/Filters/PluginSwitch...",
        "*",
        [],
        [],
        plugin_main,
        )

main()


For MultiPluginSwitch.py [edit line: 16. 17, ....]
#!/usr/bin/env python
# This plugin requires the installation of the Plug-In Switch 1.3 http://www.cybia.co.uk/pluginswitch.html
# The idea taken from RobA Shellout http://registry.gimp.org/node/24977 and GURM http://registry.gimp.org/node/13473

from gimpfu import *
import shlex
import subprocess
import os, sys
def listcommands(option=None):
  #
  # Insert additonal shell command into this list.  They will show up in the drop menu in this order.
  # Use the syntax:
  # ["Menu Label", "command", "ext"]
  #
  # Where what gets executed is command fileame so include and flags needed in the command.
  programlist = [
  ["Plugin PSPI 8bf", "\"C:\\Documents and Settings\\MareroQ\\Cybia\\PluginSwitch.exe\" \"" + "\""], #<<--EDIT THIS<<--(Directory, where you place PluginSwitch.exe)
  ["Script", "\"C:\\Documents and Settings\\MareroQ\\Cybia\\PluginSwitch-S.exe\" \"" + "\""],        #<<--EDIT THIS<<--(Directory, where you place PluginSwitch-S.exe)
  ["Plugin Python", "\"C:\\Documents and Settings\\MareroQ\\Cybia\\PluginSwitch-P.exe\" \"" + "\""], #<<--EDIT THIS<<--(Directory, where you place PluginSwitch-P.exe)
  ["Plugin Exe", "\"C:\\Documents and Settings\\MareroQ\\Cybia\\PluginSwitch-E.exe\" \"" + "\""],    #<<--EDIT THIS<<--(Directory, where you place PluginSwitch-E.exe)
  ["Fonts", "\"C:\\Documents and Settings\\MareroQ\\Cybia\\PluginSwitch-F.exe\" \"" + "\""],         #<<--EDIT THIS<<--(Directory, where you place PluginSwitch-F.exe)
  ["","",""]
  ]
 
  if option == None: # no parameter return menu list, otherwise return the appropaiate array
    menulist = []
    for i in programlist:
      if i[0] != "":
        menulist.append(i[0])
    return menulist
  else:
    return programlist[option]
def plugin_main(img, drawable, command):
  progtorun = listcommands(command)
  command = progtorun[1] + " \"" + "\""
  args = shlex.split(command)
  child = subprocess.Popen(args, shell=False)

register(
        "python_fu_MultiPluginSwitch",
        "MultiPluginSwitch",
        "MultiPluginSwitch",
        "GimpChat",
        "GimpChat",
        "2011",
        "<Image>/Filters/MultiPluginSwitch...",
        "*",
        [ (PF_OPTION,"command",("Program:"),0,listcommands())
         
        ],
        [],
        plugin_main,
        )

main()


File PluginSwitch.exe requires editing in Notepad + + +
Find and replace - [after 3 x]:
8bf -> scm; off -> ofS and save PluginSwitch-S
8bf-> exe; off-> ofE and save PluginSwitch-E ... etc


Attachments:
PluginSwitch.zip [1.7 KiB]
Downloaded 103 times
MultiPlug_In Switch.png
MultiPlug_In Switch.png [ 185.06 KiB | Viewed 1532 times ]

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: Plugin Manager - error
PostPosted: Wed Jul 13, 2011 9:04 pm  (#13) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Yes but will they switch on to be usable in Gimp after Gimp is opened?
And how on earth did you edit the PluginSwitch.exe file ....... lol

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Plugin Manager - error
PostPosted: Thu Jul 14, 2011 8:32 am  (#14) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
Rod wrote:
Yes but will they switch on to be usable in Gimp after Gimp is opened?


Right from the pluginswitch web site:

Quote:
Remember, you must use Plug-In Switch BEFORE running your host application for the settings to take effect. Do NOT try to enable or disable filters while your host program is running!


-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 Post subject: Re: Plugin Manager - error
PostPosted: Thu Jul 14, 2011 10:05 am  (#15) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2255
Location: Poland
Rod wrote:
And how on earth did you edit the PluginSwitch.exe file

Impossible?
For me it was very strange too!

I took advantage of the example of Francois Collard:
http://www.flickr.com/groups/gimpusers/ ... 027249459/

It works - but only when the number of characters (and bytes) is not changed (so if 8bf -> py need to add a space after the "y" )
But it's only for those who like experimenting ...


Attachments:
Notepad.png
Notepad.png [ 69.1 KiB | Viewed 1490 times ]

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: Plugin Manager - error
PostPosted: Thu Jul 14, 2011 10:23 am  (#16) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Sweet! :)
Thanks MareroQ.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Plugin Manager - error
PostPosted: Thu Jul 14, 2011 4:10 pm  (#17) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Okay but i still do not understand how to get the Python scripts to show in Gimp after i shut them down before i launch Gimp.
What i did was turn them all off except a few chosen ones.
Then i launched Gimp.
Everything works great except i still can not turn the python scripts on when Gimp is running.
How do i do this? ... Do i still have to shut Gimp off and restart?..What good does that do me?

Rob what does "Right from the pluginswitch web site:" mean?

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Plugin Manager - error
PostPosted: Thu Jul 14, 2011 7:06 pm  (#18) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
It means that you have to restart Gimp to see the results of using this tool. It also means that you should specifically NOT run it when your host (gimp) is running.

So short answer is no, it can not enable/disable python plugins while gimp remains running.

-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 Post subject: Re: Plugin Manager - error
PostPosted: Thu Jul 14, 2011 9:12 pm  (#19) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
RobA wrote:
It means that you have to restart Gimp to see the results of using this tool. It also means that you should specifically NOT run it when your host (gimp) is running.

So short answer is no, it can not enable/disable python plugins while gimp remains running.

-Rob A>


Thanks Rob. :)

I do not entirely see why i should use it then :lol
I was thinking it was a way to turn plugins on and off in Gimp while it ran....my bad i guess.
It doesn't turn the 8bfs on either.
It is a cool way of turning scm's off and on though. :bigthup

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Plugin Manager - error
PostPosted: Fri Jul 15, 2011 9:11 am  (#20) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
Rod wrote:
It is a cool way of turning scm's off and on though. :bigthup


True, but GURM already does that ;)

-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
Post new topic Reply to topic  [ 22 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Resource Manager advice

6

No new posts Attachment(s) Addon Manager not working

14

No new posts Attachment(s) Baby's first GEGL plugin - a very basic GEGL plugin anyone can make.

9

No new posts Attachment(s) 2.10.18 Pharta error with ON1

9

No new posts ERASER ERROR

4



* Login  



Powered by phpBB3 © phpBB Group