It is currently Wed Jul 24, 2024 12:20 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 17 posts ] 
Author Message
 Post subject: How to place G'MIC in GIMP's Image menu
PostPosted: Thu Sep 01, 2016 2:30 pm  (#1) 
Offline
GimpChat Member

Joined: May 12, 2015
Posts: 4694
Read a post as how to do this and placed G'MIC in the Main Image menu of GIMP. It disappeared recently. I cannot find the post with the instructions. Does anyone know?


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: How to place G'MIC in GIMP's Image menu
PostPosted: Thu Sep 01, 2016 2:44 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
edit file "pluginrc" with notepad++
search for "gmic_gimp"
10th line after that entry you find
(menu-path "<Image>/Filters")
simply remove Filters (or change into "<Image>/GMIC")
save
restart gimp
you'll find G'MIC at the top menu level

_________________
"Where am I ?"


Top
 Post subject: Re: How to place G'MIC in GIMP's Image menu
PostPosted: Thu Sep 01, 2016 3:23 pm  (#3) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12536
Thanks, Diego. I've been wanting to do just this, but kept putting it off; you saved me both research time and also motivation to do this; thanks to you too Pat for posing this question. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: How to place G'MIC in GIMP's Image menu
PostPosted: Thu Sep 01, 2016 10:42 pm  (#4) 
Offline
GimpChat Member

Joined: May 12, 2015
Posts: 4694
Thank you Dinasset for answering. I'll keep those instructions handy this time.

Lyle: You are welcome. Hope all goes well. I finally remembered which file I had to make the change to but after I went back into that file to see what went wrong, it still had the correct changes I had made earlier. When I went to Gimp's plug in browser, it had the menu path as Image/Filters. No place there to change it. Not sure what to try next.


Top
 Post subject: Re: How to place G'MIC in GIMP's Image menu
PostPosted: Fri Sep 02, 2016 1:15 am  (#5) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Pat, are you saying that:
- pluginrc is pointing for G'MIC to <Image> without ".../Filters"
but
- when you start Gimp you see G'mic under Filters?
that seems impossible for Gimp behaviour

_________________
"Where am I ?"


Top
 Post subject: Re: How to place G'MIC in GIMP's Image menu
PostPosted: Fri Sep 02, 2016 1:42 am  (#6) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
Another old method (more durable) - to add a new location with the small plugin (py)

#!/usr/bin/env python
#-*- coding: utf-8 -*-
# based on the idea "Gimpscripter" https://github.com/bootchk/gimpscripter [ http://registry.gimp.org/node/25305]

def plugin_main(image, drawable):
  pdb.plug_in_gmic (image, drawable, 0, 0, run_mode=RUN_INTERACTIVE)
 
if __name__ == "__main__":
  from gimpfu import *   
 
  register(
    "python_fu_plug_in_faves_gmic", 
    "Shortcut to favourite plugins",
    "This plugin was created using GimpScripter...",
    "Bootchk - modified MareroQ",
    "GimpChat",
    "No copyright date",
    "<Image>/G'MIC",
    "*",
    [],
    [],
    plugin_main,
    ) 
  main()


Attachments:
Add GMC for new menu.png
Add GMC for new menu.png [ 112.29 KiB | Viewed 5032 times ]
Gmic_gimp_faves_locatoin.zip [544 Bytes]
Downloaded 239 times

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: How to place G'MIC in GIMP's Image menu
PostPosted: Fri Sep 02, 2016 10:54 pm  (#7) 
Offline
GimpChat Member

Joined: May 12, 2015
Posts: 4694
Thank you very much, MareroQ. It worked. G'MIC is in the main image menu after the Help. I seem to have one problem after another lately with my computer or maybe it is Gimp. I have another entry that keeps appearing in the main menu if though it has been removed.


Top
 Post subject: Re: How to place G'MIC in GIMP's Image menu
PostPosted: Fri Sep 02, 2016 11:48 pm  (#8) 
Offline
Global Moderator
User avatar

Joined: Oct 02, 2014
Posts: 4538
Location: Sydney Australia
MareroQ - thanks that worked straight away.

_________________
Image

Respect should be offered freely but hard earned


Top
 Post subject: Re: How to place G'MIC in GIMP's Image menu
PostPosted: Sat Sep 03, 2016 12:38 am  (#9) 
Offline
GimpChat Member

Joined: Jul 17, 2016
Posts: 293
Location: Arlington, TX
Nice tip. I edited the pluginrc because I really don't like things popping up in twelve different menus.

Now I just need to find an easy way of getting rid of redundant filters.

_________________
Just a short while ago I was a complete idiot when it comes to GIMP. Today, after many hours of practice, reading, and watching tutorials, I am proud to say I am an incomplete idiot.

Image


Top
 Post subject: Re: How to place G'MIC in GIMP's Image menu
PostPosted: Sat Sep 03, 2016 3:43 am  (#10) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14729
Location: USA
The only problem with re editing the pluginrc file to place G'MIC in the top image menu is every time you update G'MIC you need to start GIMP, close GIMP and then re edit the pluginrc file. The new install places the G'MIC plug-in in it's default location <Image> /Filters/G'MIC . Restarting GIMP re-initializes the pluginrc file and re locates the filter.

Image

_________________
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: How to place G'MIC in GIMP's Image menu
PostPosted: Mon Sep 19, 2016 7:16 pm  (#11) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12536
Was about to post the same thing, Rod, but you beat me to it. Just had to edit the pluginrc file again. lol

:)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: How to place G'MIC in GIMP's Image menu
PostPosted: Tue Sep 20, 2016 10:16 am  (#12) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14729
Location: USA
lylejk wrote:
Was about to post the same thing, Rod, but you beat me to it. Just had to edit the pluginrc file again. lol

:)

Thinking maybe MareroQ's method would be better. Does the menu stay correct with that method? Is the item only in one location? That would be ideal. Or maybe David can whip up something in the loading of GIMP (like the Arrows-Creator) plug-in asks when loading it for the first time when you restart GIMP?

_________________
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: How to place G'MIC in GIMP's Image menu
PostPosted: Tue Sep 20, 2016 1:07 pm  (#13) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12536
I just extract the zip file (do not use installers) so that wouldn't work for me. Still, doesn't take a rocket scientist to edit pluginrc each time a G'MIC update is released. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: How to place G'MIC in GIMP's Image menu
PostPosted: Tue Nov 08, 2016 9:02 pm  (#14) 
Offline
GimpChat Member

Joined: Nov 08, 2016
Posts: 45
Is there a way to control where G'MIC appears on the <Image> menu?

It is after Help, but can it be moved to after Filters?


Top
 Post subject: Re: How to place G'MIC in GIMP's Image menu
PostPosted: Wed Nov 09, 2016 7:25 am  (#15) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14729
Location: USA
vA+6Q-Hv[BX] wrote:
Is there a way to control where G'MIC appears on the <Image> menu?

It is after Help, but can it be moved to after Filters?

Yes
1) Close GIMP if its open
2) in your user/.gimp-2.8 folder is a file named "pluginrc" open it in any text editor
3) search for the word "G'MIC"
4) you will find most likely 3-4 entries one has this line
        (menu-path "<Image>/Filters")


Change this line to whatever you like but include the
(menu-path "<Image>/")


For instance if you wanted G'MIC in the image window under G'MIC you would use
        (menu-path "<Image>/G'MIC")


Restart GIMP

This would place a new menu item in the main image window named G'MIC. That's where mine resides. :).

_________________
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: How to place G'MIC in GIMP's Image menu
PostPosted: Wed Nov 09, 2016 11:50 pm  (#16) 
Offline
GimpChat Member

Joined: Jul 11, 2010
Posts: 349
@Rod
I think what vA+6Q-Hv[BX] may be looking for is not how to place it in the top, but how to change its placement in the top from the end to after the Filters entry. This is something I would be interested in knowing.

FYI: if you only use (menu-path "<Image>/") the actual comand will be it the top listing.


Top
 Post subject: Re: How to place G'MIC in GIMP's Image menu
PostPosted: Wed Nov 30, 2016 8:44 am  (#17) 
Offline
New Member

Joined: Nov 30, 2016
Posts: 2
MareroQ wrote:
Another old method (more durable) - to add a new location with the small plugin (py)


This is an excellent solution. Kudos and thanks to MareroQ.

Personally I have a very small problem with this particular configuration though. The G'MIC menu item behaves like a button, in stead of a menu. It requires two clicks to open the G'MIC dialogue. In the case of editing the menurc file as mentioned above, the G'MIC menu contains a sub-menu item also called G'MIC, which brings up the G'MIC dialogue, either on click or button-release. This is more conventional.
So, if I may suggest a slight alteration to the py script, making the menu it creates behave in the same way as the menurc solution, change Line 18 to "<Image>/G'MIC/G'MIC",
Now the menu item behaves like a menu and not a button, and the position of the menu is better placed, and not after the Help menu. You can change the name of the submenu item to say, "Launch.." instead, or whatever you fancy. The basic idea is to have the menu behave like menus and not buttons.

Image


Top
Post new topic Reply to topic  [ 17 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) how to place text exactly into the picture - is there any help?

8

No new posts Attachment(s) Sliding-into-Place Animation Plug-in

5

No new posts You Draw, then the Robot/Computer will Place it Game

11

No new posts Attachment(s) My plan to deal with many bevel algorithms (put them all in one place)

13

No new posts Place a Star on the center of the Canvas (Solved)

4



* Login  



Powered by phpBB3 © phpBB Group