It is currently Thu Jul 25, 2024 4:14 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 200 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7, 8, 9, 10  Next
Author Message
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Sat Jul 27, 2013 12:40 pm  (#101) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4758
If you are on Linux/OSX, the plugin talks in the terminal window if you start Gimp from one. On Windows it produces a log (in the root directory of your Gimp profile).

_________________
Image


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Sun Jul 28, 2013 12:00 pm  (#102) 
Offline
GimpChat Member

Joined: Dec 27, 2012
Posts: 393
Location: England
For some reason the brush manager stopped loading and unloading brushes, so I started having a look around to see if I could find the problem. One attempt was to disable the python file and then re-enable it. That didn't fix the brush manager problem but what it did do was to make all of the other mangers appear under the help tab, pallets, gradients the lot.
What I think must have happened is that when I first set this up it was only for scripts and brushes and for reasons I don't understand the python file doesn't update itself when more managers are added to the .ini file. So the fix is to disable and then re-enable the python file whenever a new manager is added in the .ini file.
And the brush manger had stopped working because I had deleted a set of brushes from my user profile that were still loaded into Gimp and the brush manager didn't seem to like that too much. A quick fix was to delete the .active file in my brushes folder and then fire up the brush manager, problem solved.

_________________
Image

DeviantArt gallery


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Sun Jul 28, 2013 1:13 pm  (#103) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
My humble opinion is:
whenever you want to delete some entry from folders which are active under the "manager", it's better to launch first gimp, un-check what you are willing to modify (this removes those entries from gimp "normal" folders), then modify whatever you want, then re-check the folders modified to get them again active.
Otherwise your solution is also applicable: remove from .active the folder you already modified, remove the correspondent entries from the standard gimp folder and re-check the folder under the manager list

_________________
"Where am I ?"


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Sun Jul 28, 2013 1:36 pm  (#104) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4758
Caz wrote:
For some reason the brush manager stopped loading and unloading brushes, so I started having a look around to see if I could find the problem. One attempt was to disable the python file and then re-enable it. That didn't fix the brush manager problem but what it did do was to make all of the other mangers appear under the help tab, pallets, gradients the lot.
What I think must have happened is that when I first set this up it was only for scripts and brushes and for reasons I don't understand the python file doesn't update itself when more managers are added to the .ini file. So the fix is to disable and then re-enable the python file whenever a new manager is added in the .ini file.
And the brush manger had stopped working because I had deleted a set of brushes from my user profile that were still loaded into Gimp and the brush manager didn't seem to like that too much. A quick fix was to delete the .active file in my brushes folder and then fire up the brush manager, problem solved.

Read the README file... Gimp doesn't check all the plugins on startup, only those that are newer that the last time they were registered. When you update the .INI, this changes the necessary registration but since the python file is left unchanged Gimp doesn't give it a chance to re-register. Disabling/enabling is a solution, but you have to start Gimp twice, once to make Gimp forget it, and once to make Gimp aware of it again. To achieve this in one operation, you can either bump the last change date(*) of the python file ("touch" command on Linux, or, what is equivalent, set back the timestamps in the pluginrc file or remove the registration entries int that file altogether), or rename the file (and the .ini...).

When you disable a set, the manager get the list of files in the source folder and removes them from the active folder. In other words, enable and disable start the same, but when enable copies files, disables delete the destination files(*)

(*) when you are in "copy" mode of course, like you are in Windows or if you use ZIP files on Linux/OSX.

_________________
Image


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Mon Jul 29, 2013 12:03 pm  (#105) 
Offline
GimpChat Member

Joined: Dec 27, 2012
Posts: 393
Location: England
ofnuts wrote:
Read the README file


Err yeah, I sort off forgot to read the bit where it says "Warning" Could have saved myself a lot of time if I'd read it properly.

dinasset wrote:
My humble opinion is:
whenever you want to delete some entry from folders which are active under the "manager", it's better to launch first gimp, un-check what you are willing to modify (this removes those entries from gimp "normal" folders), then modify whatever you want, then re-check the folders modified to get them again active.
Otherwise your solution is also applicable: remove from .active the folder you already modified, remove the correspondent entries from the standard gimp folder and re-check the folder under the manager list


Thanks for the info. Normally I would remove the brushes from Gimp before deleting the file. Basically I need to improve my rather haphazard approach to working with files and then I might not get in such a mess.

_________________
Image

DeviantArt gallery


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Mon Jul 29, 2013 2:16 pm  (#106) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4758
Caz wrote:
Thanks for the info. Normally I would remove the brushes from Gimp before deleting the file. Basically I need to improve my rather haphazard approach to working with files and then I might not get in such a mess.

- only add stuff in the off-line location,
- enable the set to put it online. If the set is already enabled, disable/enable it.

_________________
Image


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Sat Aug 10, 2013 7:26 am  (#107) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
Didn't work for me
I am trying in Gimpainter (onkel hatti build)that support Py plugin, but no joy

Maybe the problem is to call from a context right click menu, tons of programs hack the right click menu and maybe that is the culprit, anyway i tried to right click everywhere to make it show up , no joy !...i never saw its gui, if installed it doesn't show up.

More detail with screenshot on HOW to call it , maybe will solve for me

I hope you may help me to solve i badly need it
-----------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------
But in any case i have a enhancement request regarding its accessibility:

Access from the context menu is very ergonomic, may be a time saver BUT is far to be intuitive.
So it is a useful option to preserve but would be much better offer additionally a more intuitive alternative
...in few words i would love the script modified to create a entry also in the standard menu as in :

Image window/Edit/Manage Add-on

And/or

in the Help menu ,just below the plugin and procedure browser , like

Image window/Edit/Help/Add-on Browser & Manager

_________________
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: Improved MrQ add-on manager (dinasset's request)
PostPosted: Sat Aug 10, 2013 7:47 am  (#108) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4758
The script either produces a log file (Windows) or outputs to the terminal, so let's first try to get this to see if it even runs its registration code (speaking of which, read the warning in the README about updating the INI file and getting Gimp to acknowledge the changes).

You can change the menu location, this is also described in the README.

_________________
Image


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Sat Aug 10, 2013 8:54 am  (#109) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
checking now , loading gimp with --verbose flag to see if the plugin is loaded or give errors

BTW i don't have any .ini file , neither i saw anything related to the ini file (how and where should be ...) in the README.
..the only reference about the ini file seems a line saying that is not strictly needed

It is really hard follow a topic of so many pages that is also a spin off of previous topics also of many pages,

maybe will be better summarize everything again as this was a brand new script , usable even without knowledge or practice of previous versions

_________________
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: Improved MrQ add-on manager (dinasset's request)
PostPosted: Sat Aug 10, 2013 9:26 am  (#110) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4758
PhotoComix wrote:

maybe will be better summarize everything again as this was a brand new script , usable even without knowledge or practice of previous versions


This is the very purpose of the README file, that devotes 70 lines to the configuration file, starting at line 43. Here is the whole thing again:


Attachments:
addonCollectionManager.zip [8.26 KiB]
Downloaded 82 times

_________________
Image
Top
 Post subject: Adding GPL palettes to MrQ add-on manager
PostPosted: Sat Aug 17, 2013 2:47 pm  (#111) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
If you use .GPL palettes add .gpl .GPL to, 'addonCollectionManager.py'.
Image
If you use a configuration file add .gpl .GPL to, 'addonCollectionManager.ini' as well.

[EDIT]
I was not originally using an 'addonCollectionManager.ini' file so I edited, 'addonCollectionManager.py'.
The best way to go is leave 'addonCollectionManager.py' as is.
Any changes (in this case .gpl .GPL) only need to be added to an 'addonCollectionManager.ini' file to take affect.

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


Top
 Post subject: Re: Adding GPL palettes to MrQ add-on manager
PostPosted: Sat Aug 17, 2013 4:27 pm  (#112) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4758
Odinbc wrote:
If you use .GPL palettes add .gpl .GPL to, 'addonCollectionManager.py'.


Image

I rewrote this script solely to avoid users putting their dirty and mildly incompetent fingers in the code(*). There is the config file for this.

If you edit the code, it becomes yours, so be prepared to answer yourself all questions you can have about it.

Asking the author to update the script to support useful defaults is however highly recommended.

(*) they usually break the script because they don't know how picky Python is with tabs.

_________________
Image


Top
 Post subject: Re: Adding GPL palettes to MrQ add-on manager
PostPosted: Sat Aug 17, 2013 5:11 pm  (#113) 
Offline
GimpChat Member
User avatar

Joined: Sep 22, 2012
Posts: 2089
Location: US
ofnuts wrote:
I rewrote this script solely to avoid users putting their dirty and mildly incompetent fingers in the code(*).
(*) they usually break the script because they don't know how picky Python is with tabs.


:ninja :rofl I'm the one who does it all the time but seems I didn't break anything yet. Maybe because I wash my hands?


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Sat Aug 17, 2013 6:02 pm  (#114) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
'The great unwashed'?
Yup, I'm guilty! :bigthup

_________________
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: Tue Dec 17, 2013 7:14 pm  (#115) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4758
Eventually got around documenting the script on the Sourceforge site...

_________________
Image


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Wed Dec 18, 2013 2:38 am  (#116) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
A month ago I had a second try at using this and by just working with the .ini file I've had great success except it only likes to work with one gimp at a time, due to the fact it keeps info about loaded files in a single .active file without any distinction of where the files are active

Maybe you could add a sync feature so that whenever the Addon Manager is accessed it could sync with all the .active files first

This is the .ini file I created

#-------------------------------------------------------------------------
[all]
# enable:brushes dynamics fonts gradients palettes patterns scripts
enable:brushes patterns fonts gradients palettes scripts
addons_active:{GimpUser}/{type}/Added Resources
#addons_stored:{GimpUser}/{type}_alt
addons_stored:C:\Manager\{type}
menu_location:{<type>}
menu_entry:{type} sets...
menu_description:Manage {type} sets...
dialog_title:{type} sets manager
[brushes]
menu_location:<Image>/Resources
extensions:.gbr .vbr .gih .abr .GBR .VBR .GIH
#[dynamics]
#extensions:.gdyn .GDYN
[fonts]
menu_location:<Image>/Resources
extensions:.ttf .otf .ttc .TTF .OTF .TTC
[gradients]
menu_location:<Image>/Resources
extensions:.ggr .GGR
[palettes]
menu_location:<Image>/Resources
extensions:.pal .gpl .PAL .GPL
[patterns]
menu_location:<Image>/Resources
extensions:.png .jpg .pat .PNG .JPG .PAT
[scripts]
menu_location:<Image>/Resources
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: Wed Dec 18, 2013 9:34 am  (#117) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4758
I don't really understand the problem:
  • The add-on manager works within a given Gimp profile, so if your other instance is using a different profile there should be no interaction.
  • If you use the same profile with both instances and one instance activates/deactivates something, then of course the dialog won't be updated. But to determine what should be activated/deactivated when you click OK, the code computes the delta between the zips/directories you checked in the dialog and the .active it reads at that very moment, so you should always end up with what you asked for, even if the other instance has activated/deactivated things on its own. But of course if both instances are using the same Gimp profile then both instances will see the same add-ons activated (that may require a manual refresh in the second one).

_________________
Image


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Wed Dec 18, 2013 6:21 pm  (#118) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
My problem ofnuts is that although the manager works terrific with 1 gimp, I would like to use the same Manager files on my 'C' drive for 2 0r 3 gimps

to do this the .active file contents would have to be stored in the .ini file of each gimp

_________________
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 Dec 18, 2013 6:42 pm  (#119) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4758
If you want all you Gimp to use the same add-ones, either use the same profile for all... or in each Gimp profile, use the preferences to add a specific directory for the add-ons, and tell the add-on manager to use that directory when activating add-ons (this is the "addons_active" setting).

_________________
Image


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Wed Dec 18, 2013 6:49 pm  (#120) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
ofnuts thanks for your patience with my problem that had such an obvious solution :mrgreen:

_________________
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 ... 3, 4, 5, 6, 7, 8, 9, 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