It is currently Thu Jul 25, 2024 2:45 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: Wed May 08, 2013 12:06 pm  (#21) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2446
@Ofnuts
1. Restored you plugin back to original, working fine
2. Decided to add some more resources folders, fonts and patterns.
Both show up in the menu system. Fonts are no problem but nothing shows in the patterns menu unless the .pat (and 1 png) files are zipped. Not a problem for me but any ideas.

_________________
Image


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Wed May 08, 2013 12:24 pm  (#22) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14730
Location: USA
rich2005 wrote:
@Ofnuts
1. Restored you plugin back to original, working fine
2. Decided to add some more resources folders, fonts and patterns.
Both show up in the menu system. Fonts are no problem but nothing shows in the patterns menu unless the .pat (and 1 png) files are zipped. Not a problem for me but any ideas.

Do you have to zip each individual scm file still 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: Wed May 08, 2013 12:58 pm  (#23) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4758
dinasset wrote:
Thanks Ofnuts!!!
the new version is OK, my brushes are loaded!!!
(maybe, you are so nice to consider - do not hit me, please - also my question whether it would be possible to keep the sub-folder name when loaded onto the brush dock, so that the filter can select by group...)
Anyhow, thanks a lot...

Hmm. I'll look into that.

_________________
Image


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Wed May 08, 2013 6:42 pm  (#24) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
I,m lost, the plugin works but how do I add resources

_________________
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: Wed May 08, 2013 7:25 pm  (#25) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4758
Graechan wrote:
I,m lost, the plugin works but how do I add resources

To add selectable sets you add them either as subdirectories of the "*_stored" directories, or as ZIP files in the same directory.

_________________
Image


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Wed May 08, 2013 7:27 pm  (#26) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4758
Rod wrote:
rich2005 wrote:
@Ofnuts
1. Restored you plugin back to original, working fine
2. Decided to add some more resources folders, fonts and patterns.
Both show up in the menu system. Fonts are no problem but nothing shows in the patterns menu unless the .pat (and 1 png) files are zipped. Not a problem for me but any ideas.

Do you have to zip each individual scm file still ofnuts?

No... but you have to put them in directories under "scripts_stored" (if you are using the standard configuration) and use the manage to activate the directories.

_________________
Image


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Wed May 08, 2013 7:31 pm  (#27) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4758
rich2005 wrote:
@Ofnuts
1. Restored you plugin back to original, working fine
2. Decided to add some more resources folders, fonts and patterns.
Both show up in the menu system. Fonts are no problem but nothing shows in the patterns menu unless the .pat (and 1 png) files are zipped. Not a problem for me but any ideas.

The "selection units" are directories or zip files(*). Your .pat or (.png) has to be put in a subdirectory of the "patterns_stored" directory, or in a zip file (but on Linux, use a directory, this is much faster)

(*) Because as it says on the box, the manager manages collections/sets of add-ons, and not single add-ons.

_________________
Image


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Wed May 08, 2013 7:54 pm  (#28) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
ofnuts when you refer to "*_stored" directories does that mean I should create a folder named "brushes_stored" and inside place folders containing my brushes, if so can i place "brushes_stored" in my C:\ drive as that would be in my gimp path

_________________
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 2:20 am  (#29) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2446
Quote:
The "selection units" are directories or zip files(*). Your .pat or (.png) has to be put in a subdirectory of the "patterns_stored" directory, or in a zip file (but on Linux, use a directory, this is much faster)


Thanks

Yeah - Rod's post 'tweaked' my memory. The fonts came from GURM in folders and showed up straight away. I still find individual zipped scripts extremely useful as a means of reducing clutter. Anything with a theme, ie. fonts, brushes can go in a sub-folder.

_________________
Image


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

Joined: Oct 25, 2010
Posts: 4758
Graechan wrote:
ofnuts when you refer to "*_stored" directories does that mean I should create a folder named "brushes_stored" and inside place folders containing my brushes,


Exactly, you can also use Zip files instead of folders

Graechan wrote:
if so can i place "brushes_stored" in my C:\ drive as that would be in my gimp path


Yes, and then you tell the plugin using the configuration file:

[brushes]
addons_stored: C:\Brushes

_________________
Image


Top
 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 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