It is currently Thu Jul 25, 2024 2:59 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 200 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 10  Next
Author Message
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Thu May 09, 2013 3:10 pm  (#31) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14730
Location: USA
I have to say ofnuts i am still lost here.If i have my own resource folder do i have to edit the python file here at about line #48?


builtinSections={
'all': {
#'enable':'brushes fonts patterns'
'enable':'brushes dynamics fonts gradients palettes patterns scripts',
'addons_active':'{GimpUser}/{type}',
'addons_stored':'{GimpUser}/{type}_storage',
'menu_location':'<{Type}>',
'menu_entry':'{Type} sets...',
'menu_description':'Manage {type} sets...',
'dialog_title':'{Type} sets manager'
},

TO

builtinSections={
'all': {
#'enable':'brushes fonts patterns'
'enable':'brushes dynamics fonts gradients palettes patterns scripts',
'addons_active':'{GimpUser}/{type}',
'addons_stored':'C:\GIMP',
'menu_location':'<{Type}>',
'menu_entry':'{Type} sets...',
'menu_description':'Manage {type} sets...',
'dialog_title':'{Type} sets manager'
},

_________________
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: Improved MrQ add-on manager (dinasset's request)
PostPosted: Thu May 09, 2013 5:10 pm  (#32) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4758
Of course not... this stuff are the values the plugin uses if they is no config file (or if they aren't defined there).

If you have your own resource folder, you create the config file (addonCollectionManager.ini, in the plugins directory in your profile) and add a section for each of your resource folders. But the plugin assumes (independently of built-in/config file) that your add-ons are organized with a parent directory for each type, i.e. that you have something like:
C:\Gimp
|
+--C:\Gimp\brushes
|   |
|   +--C:\Gimp\brushes\flowers
|   |
|   +--C:\Gimp\brushes\fruits
|   |
|   +--C:\Gimp\brushes\balloons
|
+--C:\Gimp\patterns
|   |
|   +--C:\Gimp\patterns\tiles
|   |
|   +--C:\Gimp\patterns\stone
|   |
|   +--C:\Gimp\patterns\wood

In which case you can use in the config file:
[brushes]
addons_stored:C:\Gimp\brushes
[patterns]
addons_stored:C:\Gimp\patterns

And the brush manager will let you activate flowers/fruits/balloons independently.

But if you keep the Gimp names for the folders ('brushes", "patterns"...) and you stuff is all kept under C:\Gimp, you can go for the simpler:
[all]
addons_stored:C:\Gimp\{type}

_________________
Image


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Thu May 09, 2013 6:14 pm  (#33) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14730
Location: USA
Got it i think. :lol
Can SVG gradients be added to the mix?

Thanks ofnuts.

_________________
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: Improved MrQ add-on manager (dinasset's request)
PostPosted: Thu May 09, 2013 6:27 pm  (#34) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14730
Location: USA
So here is my ini contents (complete).
Is this correct?
My resource folder is C:\GIMP
All my patterns, scripts,gradients,pallettes...ect..ect are under that folder with sub folders for each category.

         [brushes]
         addons_stored:C:\Gimp\brushes
         [patterns]
         addons_stored:C:\Gimp\patterns
         [palettes]
         addons_stored:C:\Gimp\palettes
         [gradients]
         addons_stored:C:\Gimp\gradients
         [scripts]
         addons_stored:C:\Gimp\scripts
         [fonts]
         addons_stored:C:\Gimp\fonts
         'menu_location':'<Image>/Filters/GURM'


Sorry to be such a pain, but i really want to make sure i understand everything perfectly clear. :)

_________________
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: Improved MrQ add-on manager (dinasset's request)
PostPosted: Thu May 09, 2013 6:41 pm  (#35) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14730
Location: USA
Apparently that doesn't work.
I tried just placing the python file in my plugins folder and all i got was script sets under the help menu.
I clicked on it and it gave me the dialog but no scripts.
This was without the ini file of course.

_________________
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: Improved MrQ add-on manager (dinasset's request)
PostPosted: Thu May 09, 2013 6:46 pm  (#36) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4758
Rod wrote:
So here is my ini contents (complete).
Is this correct?
My resource folder is C:\GIMP
All my patterns, scripts,gradients,pallettes...ect..ect are under that folder with sub folders for each category.

         [brushes]
         addons_stored:C:\Gimp\brushes
         [patterns]
         addons_stored:C:\Gimp\patterns
         [palettes]
         addons_stored:C:\Gimp\palettes
         [gradients]
         addons_stored:C:\Gimp\gradients
         [scripts]
         addons_stored:C:\Gimp\scripts
         [fonts]
         addons_stored:C:\Gimp\fonts
         'menu_location':'<Image>/Filters/GURM'


Sorry to be such a pain, but i really want to make sure i understand everything perfectly clear. :)

It should be
menu_location:<Image>/Filters/GURM

(no quotes necessary in the config file...), but the menu_location will only apply to fonts (there is one menu location per type manager).

_________________
Image


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Thu May 09, 2013 6:52 pm  (#37) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4758
Rod wrote:
Apparently that doesn't work.
I tried just placing the python file in my plugins folder and all i got was script sets under the help menu.
I clicked on it and it gave me the dialog but no scripts.
This was without the ini file of course.

By default the manager is launched from the right-click menu in each of the add-ons lists (start the brush lists, right click...). The script are an exception: there is list if scripts, but the Help menu contains related stuff (plugin and script browser)).

Your C:\Gimp\scripts should not contain scripts but directories (and/or ZIP files) containing scripts. What the manager dialog displays is really the directories and zip files found in addons_stored.

_________________
Image


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Thu May 09, 2013 7:37 pm  (#38) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
I have created this folder tree containing my brush set folders C:\Gimp\brushes but my menu is still empty

Do I need to edit the Add-on manager.py and if so where as I tried but failed

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Thu May 09, 2013 8:25 pm  (#39) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4758
Graechan wrote:
I have created this folder tree containing my brush set folders C:\Gimp\brushes but my menu is still empty

Do I need to edit the Add-on manager.py and if so where as I tried but failed

The answer to this is in the initial post of this topic.

I'll add that as soon as you modify the source, this becomes your script, not mine, so you get to answer yourself the questions you can have about its behavior:).

And what do you call "my menu" above? A specific menu location in Gimp (where?) or the selection dialog from the manager?

_________________
Image


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Thu May 09, 2013 8:59 pm  (#40) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
ofnuts if you mean this Instruction

Quote:
there is no need to edit the Python source, all user changes are handled with a configuration file

where is the configuration file as the download only contained the python file

also when I stated menu I was referring to the selection dialog from the manager
as displayed below

Image

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Fri May 10, 2013 4:05 am  (#41) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4758
Graechan wrote:
ofnuts if you mean this Instruction

Quote:
there is no need to edit the Python source, all user changes are handled with a configuration file

where is the configuration file as the download only contained the python file

also when I stated menu I was referring to the selection dialog from the manager
as displayed below

[ Image ]

1) yes
2) see here
3) go to this post, download the attached script version, follow the instructions in the post, run the manager once (ie, up to the empty selection dialog), and post the resulting trace.txt file.

_________________
Image


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Fri May 10, 2013 9:05 pm  (#42) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
ofnuts thank you for your assistance This is the trace.txt file that was created in my bin folder

Attachment:
trace.zip [592 Bytes]
Downloaded 88 times

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Fri May 10, 2013 9:41 pm  (#43) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
Hopefully my Windows setup might help someone.
Path to the plugin, (original file, no change).
C:\Users\Odin\.gimp-2.8\plug-ins\addonCollectionManager.py

Path to my config file, (from readme, no change).
C:\Users\Odin\.gimp-2.8\plug-ins\addonCollectionManager.ini

Example paths to resources, (sub folders only, no zip files).
C:\Users\Odin\.gimp-2.8\brushes_storage\Splatter Brushes
C:\Users\Odin\.gimp-2.8\fonts_storage\Celtic
C:\Users\Odin\.gimp-2.8\gradients_storage\AG_Gradients
C:\Users\Odin\.gimp-2.8\palettes_storage\COPIA
C:\Users\Odin\.gimp-2.8\patterns_storage\Bling Text
C:\Users\Odin\.gimp-2.8\scripts_storage\saulgoode

My config file.
#-------------------------------------------------------------------------
[all]
enable:brushes dynamics fonts gradients palettes patterns scripts
addons_active:{GimpUser}/{type}
addons_stored:{GimpUser}/{type}_storage
menu_location:{<Type>}
menu_entry:{Type} sets...
menu_description:Manage {type} sets...
dialog_title:{Type} sets manager
[brushes]
extensions:.gbr .vbr .gih .abr .GBR .VBR .GIH
[dynamics]
extensions:.gdyn .GDYN
[fonts]
extensions:.ttf .otf .TTF .OTF
[gradients]
extensions:.ggr .GGR
[palettes]
extensions:.pal .PAL
[patterns]
extensions:.png .pat .PNG .PAT
[scripts]
menu_location:<Image>/Help
extensions:.scm .SCM
#-------------------------------------------------------------------------

_________________
Image
Gimp 2.8.18, Linux, median user
Gimp Chat Tutorials Index
Spirit Bear (Kermode)


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Fri May 10, 2013 11:54 pm  (#44) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Odin somewhere I've lost the plot(probably at about 40 'many years ago') would you be able to post this file as an attachment and let me know where I should put my amended version, e.g in my plugin folder with the addon manager file

I tried this↓ but still have an empty brush menu, my resources are all located at C:\Gurm\brushes e.t.c

#-------------------------------------------------------------------------
[all]
enable:brushes dynamics fonts gradients palettes patterns scripts
addons_active:{GimpUser}/{type}
addons_stored:C:\Gurm\{type}
menu_location:{<Type>}
menu_entry:{Type} sets...
menu_description:Manage {type} sets...
dialog_title:{Type} sets manager
[brushes]
extensions:.gbr .vbr .gih .abr .GBR .VBR .GIH
[dynamics]
extensions:.gdyn .GDYN
[fonts]
extensions:.ttf .otf .TTF .OTF
[gradients]
extensions:.ggr .GGR
[palettes]
extensions:.pal .PAL
[patterns]
extensions:.png .pat .PNG .PAT
[scripts]
menu_location:<Image>/Help
extensions:.scm .SCM
#-------------------------------------------------------------------------

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Sat May 11, 2013 3:13 am  (#45) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
I'm not sure what your asking, Graechan?
I've stored my brushes, fonts, patterns, etc.,in Gimp user folder.
C:\Users\Odin\.gimp-2.8
The plugin and config files are in user plug-ins folder (un-edited).
C:\Users\Odin\.gimp-2.8\plug-ins
All resources example,
C:\Users\Odin\.gimp-2.8\brushes
and for MrQ,
C:\Users\Odin\.gimp-2.8\brushes_storage

I think it might be easier for you to move and rename the resource folders (brushes_storage) rather than try to rewrite the code. The plugin's a very clever piece of work as is.

_________________
Image
Gimp 2.8.18, Linux, median user
Gimp Chat Tutorials Index
Spirit Bear (Kermode)


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Sat May 11, 2013 3:43 am  (#46) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4758
Graechan wrote:
ofnuts thank you for your assistance This is the trace.txt file that was created in my bin folder

Attachment:
trace.zip


Your Gimp set up is strange because it looks for the config file in "C:\gimp_2_8_0-32bits\pref_1\plug-ins\addonCollectionManager.ini" (is this a "portable" version?). But now you know where to put the config file :)

_________________
Image


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Sat May 11, 2013 3:47 am  (#47) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4758
Graechan wrote:
Odin somewhere I've lost the plot(probably at about 40 'many years ago') would you be able to post this file as an attachment and let me know where I should put my amended version, e.g in my plugin folder with the addon manager file

I tried this↓ but still have an empty brush menu, my resources are all located at C:\Gurm\brushes e.t.c

#-------------------------------------------------------------------------
[all]
enable:brushes dynamics fonts gradients palettes patterns scripts
addons_active:{GimpUser}/{type}
addons_stored:C:\Gurm\{type}
menu_location:{<Type>}
menu_entry:{Type} sets...
menu_description:Manage {type} sets...
dialog_title:{Type} sets manager
[brushes]
extensions:.gbr .vbr .gih .abr .GBR .VBR .GIH
[dynamics]
extensions:.gdyn .GDYN
[fonts]
extensions:.ttf .otf .TTF .OTF
[gradients]
extensions:.ggr .GGR
[palettes]
extensions:.pal .PAL
[patterns]
extensions:.png .pat .PNG .PAT
[scripts]
menu_location:<Image>/Help
extensions:.scm .SCM
#-------------------------------------------------------------------------

If you put the config file where the plugin expects it it should work. But it can be shortened to:
[all]
addons_stored:C:\Gurm\{type}

since the rest looks identical to the defaults.

_________________
Image


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Sat May 11, 2013 10:49 pm  (#48) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Quote:
If you put the config file where the plugin expects it it should work. But it can be shortened to:

ofnuts so now I have a config file that should work if I can find the place where to put it

please can someone let me know where the plugin expects to find the config file

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Sat May 11, 2013 11:06 pm  (#49) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
User plug-ins folder.
[user]\.gimp-2.8\plug-ins\addonCollectionManager.py
[user]\.gimp-2.8\plug-ins\addonCollectionManager.ini

_________________
Image
Gimp 2.8.18, Linux, median user
Gimp Chat Tutorials Index
Spirit Bear (Kermode)


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Sun May 12, 2013 2:53 am  (#50) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Odin I Tried that but it still failed

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
Post new topic Reply to topic  [ 200 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 10  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Thank you Dinasset

7

No new posts Attachment(s) dinasset's photos modified

35

No new posts Lines Art 2024 by Dinasset (Video)

9

No new posts Attachment(s) Addon Manager not working

14

No new posts Resource Manager advice

6



* Login  



Powered by phpBB3 © phpBB Group