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


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 200 posts ]  Go to page 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 2:55 am  (#11) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4758
Graechan wrote:
Rod the new addon manager still locates each resource menu inside it's respective resource I just can't get mine to pick up any resources

It locates the menu where you want it...

_________________
Image


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

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Hi Ofnuts
first of all, many thanks for having done a big job starting from one comment of mine on MrQ Managers.
Now, I want to share with you the steps I did to try your improved version (really a totally new plug-in!):
(all the steps done working on User/.gimp-2.8 folder)
1 - removed MrQ plug-ins from the plug-in folder
2 - added your plug-in into the same
3 - created a brushes_storage folder with all my brushes sub-folders (I saw your default name is *_storage)
4 - emptied the standard brushes folder to avoid mix-up with previously loaded brushes
5 - started Gimp
OK, I found - by right-clicking on the brush dock "brushes sets...", I clicked and found the list of all sub-folders included into brushes_storage, excellent.
Then I selected just one of the sub-folders and hit OK.
I got a message "Activating added add-ons...", but this message runs endlessly.
Did I do something wrong? This is my first simple question.
The second one may appear to you and to all experts here quite stupid, but I have to writer it down:
you talk about a "configuration file": where is it? will it be created automatically after the first run of the plug-in?
The user needs to change that file (luckily not the python file!) if for instance wants to change the *_storage folder name with something else.
Should - maybe - the user extract the lines related to the default configuration entries in the readme or plug-in, then store them into this configuration file (with which name and extension?)
Sorry for my ignorance...
Thanks again

_________________
"Where am I ?"


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Wed May 08, 2013 10:41 am  (#13) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2446
This is my edited addonCollectionManager.ini file that comes from the readme.txt
I only really wanted the brushes and scripts, so they are enabled.
I commented out bits I did not require. Not sure if this is required.

#-------------------------------------------------------------------------
[all]
# enable:brushes dynamics fonts gradients palettes patterns scripts
enable:brushes scripts
addons_active:{GimpUser}/{type}
addons_stored:{GimpUser}/{type}_alt
menu_location:{<type>}
menu_entry:{type} sets...
menu_description:Manage {type} sets...
dialog_title:{type} sets manager
[brushes]
menu_location:<Image>/Help
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
#-------------------------------------------------------------------------


I know Ofnuts said the python file did not require editing but I did anyway
changed line 45 and commented out line 46

43 builtinSections={
44      'all': {
45         'enable':'brushes scripts',
46         #'enable':'brushes dynamics fonts gradients palettes patterns scripts',


Works fine so far, think I will keep it, looks like this

Image

_________________
Image


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Wed May 08, 2013 10:59 am  (#14) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Thanks Rich!
Created the file .ini as per your example (except I activated only brushes) then I put the file in the same folder where the plug-in is; probably this was an error, because I do not see the brush set under menu, as the .ini says...

_________________
"Where am I ?"


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

Joined: Oct 25, 2010
Posts: 4758
dinasset wrote:
Hi Ofnuts
first of all, many thanks for having done a big job starting from one comment of mine on MrQ Managers.
Now, I want to share with you the steps I did to try your improved version (really a totally new plug-in!):
(all the steps done working on User/.gimp-2.8 folder)
1 - removed MrQ plug-ins from the plug-in folder
2 - added your plug-in into the same
3 - created a brushes_storage folder with all my brushes sub-folders (I saw your default name is *_storage)
4 - emptied the standard brushes folder to avoid mix-up with previously loaded brushes
5 - started Gimp
OK, I found - by right-clicking on the brush dock "brushes sets...", I clicked and found the list of all sub-folders included into brushes_storage, excellent.
Then I selected just one of the sub-folders and hit OK.

OK, so far so good :)

dinasset wrote:
I got a message "Activating added add-ons...", but this message runs endlessly.
Did I do something wrong? This is my first simple question.

No... possibly a bug. Remove the installed version, replace by the one in the ZIp attached to this post. Start Gimp and try to activate new brushes. This will create a "trace.txt" file in Gimp's current directory (on XP, this seems to be c:\documents and settings\{user's id}). Find it and copy the contents here.

Attachment:
addonCollectionManager-tracing.zip [4.09 KiB]
Downloaded 128 times


dinasset wrote:
The second one may appear to you and to all experts here quite stupid, but I have to writer it down:
you talk about a "configuration file": where is it? will it be created automatically after the first run of the plug-in?
The user needs to change that file (luckily not the python file!) if for instance wants to change the *_storage folder name with something else.
Should - maybe - the user extract the lines related to the default configuration entries in the readme or plug-in, then store them into this configuration file (with which name and extension?)
Sorry for my ignorance...
Thanks again

There is no configuration file by default. You can create one: "addonCollectionManager.ini" in you plugins directory (ie, right next to the .PY). Of course you don't need to edit the Python file (this is the one reason for the rework). To change the location of your sets there are several ways:

The simpler way:
[all]
addons_stored:{GimpUser}/{type}_whatever_suffix_you_want

This will configure all your sets to come from, according to type:
  • brushes: c:\users\{your_id}\.gimp_2.8\brushes_whatever_suffix_you_want
  • fonts: c:\users\{your_id}\.gimp_2.8\fonts_whatever_suffix_you_want
  • etc...
because "{GimpUser}" is automagically replaced by your profile location and "{type}" by the managed addons type.

Otherwise there is the more tedious:
[brushes]
addons_stored:{GimpUser}/brushes_whatever_suffix_you_want
[fonts]
addons_stored:{GimpUser}/fonts_and_possibly_some_other_suffix

# etc....


But you can also keep all this stuff outside of your profile:
[all]
addons_stored:{UserHome}/My documents\Gimp Addons\{type}

with of course directories named:
  • C:\users\{your_id}\My documents\Gimp Addons\brushes
  • C:\users\{your_id}\My documents\Gimp Addons\fonts
  • etc...

_________________
Image


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

Joined: Oct 25, 2010
Posts: 4758
rich2005 wrote:
I know Ofnuts said the python file did not require editing but I did anyway
changed line 45 and commented out line 46

43 builtinSections={
44      'all': {
45         'enable':'brushes scripts',
46         #'enable':'brushes dynamics fonts gradients palettes patterns scripts',


Works fine so far, think I will keep it, looks like this

[ Image ]


Why did you need to do so? The 'enable' line in the configuration file doesn't work?

_________________
Image


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

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
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...

_________________
"Where am I ?"


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Wed May 08, 2013 11:21 am  (#18) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
addendum: in Windows 7 the trace.txt is created under User

_________________
"Where am I ?"


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Wed May 08, 2013 11:25 am  (#19) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2446
@Ofnuts
I was having some trouble getting anything other than 'scripts' to show in the Help menu.
So I started commenting out and simplifying.....I will go back and see if the default works.

@dinasset
Just note that my folders with the resources in are named "something_alt"
That is the line addons_stored:{GimpUser}/{type}_alt
guessing yours are not and that line needs to be changed.

..and a bit more tinkering. I see what Ofnuts meant about the pluginrc file.
I changed the menu locations in the ini file to menu_location:<Image>/Resource
No result until I disabled (renamed) the pluginrc which Gimp rebuilt when starting.
Now have a Resource menu with 2 entries, brushes and scripts.

_________________
Image


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Wed May 08, 2013 11:43 am  (#20) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
@Ofnuts
using a personalised .ini I noticed (by reading the trace.txt) that the configuration is read under the standard user folder plug-ins ("Reading configuration file C:\Users\User\.gimp-2.8\plug-ins\addonCollectionManager.ini) even if your plug-in itself was placed under a different folder, the one I use for new plug-ins testing.
So, I moved from "right next to the .py" into the standard plug-ins folder, and my personalised configuration was read and applied correctly. I tell you that because - if some body else is reading this topic (I guess many...) now it works so. Very likely you said "right next to the .py" because you assumed I put the .py into the standard plug-ins folder. OK, everything fine, for me (also because, after the testing, I will move the plug-in also under the standard folder)

@rich
no, I did all properly, but it was the version I had previously that didn't work, the new one provided to me by Ofnuts works perfectly!

@all: enjoy the new Ofnuts plug-in!!!

_________________
"Where am I ?"


Top
 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 new topic Reply to topic  [ 200 posts ]  Go to page 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