It is currently Sun Jun 30, 2024 12:21 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: GMIC in the menu
PostPosted: Thu May 07, 2020 8:21 pm  (#1) 
Offline
GimpChat Member
User avatar

Joined: Jul 06, 2013
Posts: 2607
Location: California
Not sure if anyone has GMIC at the top of their menu in Gimp. Just came across this script: https://discuss.pixls.us/t/integrate-gm ... mp/10183/4

I also think it's a plugin as well. It's from 2018.


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: GMIC in the menu
PostPosted: Thu May 07, 2020 8:40 pm  (#2) 
Offline
GimpChat Member

Joined: Jul 28, 2018
Posts: 1196
Thank you for sharing, mackenzie it worked, I like it. It's easy to access, instead of going to the bottom of the Filters menu. :bigthup

Image

_________________
https://www.deviantart.com/pocholo17
Image


Top
 Post subject: Re: GMIC in the menu
PostPosted: Thu May 07, 2020 9:22 pm  (#3) 
Offline
GimpChat Member
User avatar

Joined: Jul 06, 2013
Posts: 2607
Location: California
Pocholo wrote:
Thank you for sharing, mackenzie it worked, I like it. It's easy to access, instead of going to the bottom of the Filters menu. :bigthup

[ Image ]


You're welcome Pocholo. My only questions are, can it still be accessed if GMIC is deleted from the Filters menu and will the .scm file be updated when GMIC gets updated?


Top
 Post subject: Re: GMIC in the menu
PostPosted: Thu May 07, 2020 9:35 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12531
I've done this trick a while back but it got obliterated over time with all the GIMP updates. lolol

Cool sharing that info, Mackenzieh; may try doing this again since I hate to have to scroll down all the time (usually only have to do this once since I go to filter history thereafter; lol). :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: GMIC in the menu
PostPosted: Thu May 07, 2020 9:43 pm  (#5) 
Offline
GimpChat Member
User avatar

Joined: Jul 06, 2013
Posts: 2607
Location: California
lylejk wrote:
I've done this trick a while back but it got obliterated over time with all the GIMP updates. lolol

Cool sharing that info, Mackenzieh; may try doing this again since I hate to have to scroll down all the time (usually only have to do this once since I go to filter history thereafter; lol). :)


You're welcome, Lyle.


Top
 Post subject: Re: GMIC in the menu
PostPosted: Thu May 07, 2020 10:35 pm  (#6) 
Offline
GimpChat Member

Joined: Jul 28, 2018
Posts: 1196
mackenzieh wrote:
Pocholo wrote:
Thank you for sharing, mackenzie it worked, I like it. It's easy to access, instead of going to the bottom of the Filters menu. :bigthup

[ Image ]


You're welcome Pocholo. My only questions are, can it still be accessed if GMIC is deleted from the Filters menu and will the .scm file be updated when GMIC gets updated?


No, it won't work. You still will have it on top but the tab will be grey out. Once you update to the newer G'MIC version it will still work. This is real neat!

_________________
https://www.deviantart.com/pocholo17
Image


Top
 Post subject: Re: GMIC in the menu
PostPosted: Fri May 08, 2020 1:17 am  (#7) 
Offline
GimpChat Member
User avatar

Joined: Jul 06, 2013
Posts: 2607
Location: California
Pocholo wrote:
mackenzieh wrote:
Pocholo wrote:
Thank you for sharing, mackenzie it worked, I like it. It's easy to access, instead of going to the bottom of the Filters menu. :bigthup

[ Image ]


You're welcome Pocholo. My only questions are, can it still be accessed if GMIC is deleted from the Filters menu and will the .scm file be updated when GMIC gets updated?


No, it won't work. You still will have it on top but the tab will be grey out. Once you update to the newer G'MIC version it will still work. This is real neat!


So, the GMIC in the bottom of the filters menu can't be removed even if you have the .scm script?


Top
 Post subject: Re: GMIC in the menu
PostPosted: Fri May 08, 2020 2:26 am  (#8) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
@ Mackenzieh
This method cannot be used (if you wanted, you must edit the pluginrc file).

The menu is grayed out only when no image is open.
This does not replace the original location in the Filters/G'mic-Qt menu, it just adds a new item on the top bar (typical "shortcut").
Until recently (before Ofnuts tips) I didn't notice that there are two ways to register: "old" which will not work in the future Gimp-3.0 and recommended "new" (menu-register as a separate entry).
For convenience revised python and script-fu (for today's and future versions of Gimp) in the attachment.
You should decide - what to choose: script-fu (*.scm) or Python plugin (*.py).

Python code:
#!/usr/bin/env python
#-*- coding: utf-8 -*-

# based on the idea "Gimpscripter" https://github.com/bootchk/gimpscripter
from gimpfu import *

def python_fu_faves_gmic_qt(image, drawable):

  pdb.plug_in_gmic_qt( image, drawable, 0, 0, 0, run_mode=RUN_INTERACTIVE)
 
register(
   "python_fu_faves_gmic_qt", 
   "Shortcut to favourite plugins",
   "This plugin was created using 'GimpScripter...",
   "Bootchk - modified MareroQ",
   "GPL",
   "2020",
   "G'MIC QT..",
   "RGB*, GRAY*",
   [
      (PF_IMAGE, "image", "Input image", None),
      (PF_DRAWABLE, "drawable", "Input drawable", None),
   ],
   [],
   python_fu_faves_gmic_qt, menu="<Image>/G'MIC"
   ) 

main()


Script-fu code:
(define (script-fu-gmic-faves-location image drawable)
   (plug-in-gmic-qt 0 image drawable 1 1 "")
)

(script-fu-register "script-fu-gmic-faves-location"
   "G'MIC-Qt..."
   "Shortcut to call G'MIC from Gimp main menu"
   "MrQ"
   "GPL"
   "2020"
   "RGB*, GRAY*"
   SF-IMAGE    "Image"     0
   SF-DRAWABLE "Drawable"  0
   )
(script-fu-menu-register "script-fu-gmic-faves-location" "<Image>/G'MIC")


Attachments:
Gmic_gimp_qt_faves_locatoin_py.zip [563 Bytes]
Downloaded 81 times
gmic faves location-scm.zip [371 Bytes]
Downloaded 83 times

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: GMIC in the menu
PostPosted: Fri May 08, 2020 3:55 am  (#9) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Thanks MareroQ, but for me it's also easy to change pluginrc (just once, when a new release appears).
At least in my Samj' pack.

_________________
"Where am I ?"


Top
 Post subject: Re: GMIC in the menu
PostPosted: Fri May 08, 2020 11:06 pm  (#10) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
Hi Diego.

Not every user likes to perform such operations. :hehe
This gives you the choice: editing pluginrc or adding a simple plugin.
Your post has mobilized me for another attempt - editing the pspirc file (because I have too many entries from * .8bf files on the Filters menu).
Using Notepad ++ means 5 seconds of editing.
And it works as expected.


Attachments:
PSPI.png
PSPI.png [ 20.44 KiB | Viewed 2155 times ]
PSPI in menu.png
PSPI in menu.png [ 5.31 KiB | Viewed 2155 times ]

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: GMIC in the menu
PostPosted: Fri May 08, 2020 11:12 pm  (#11) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Fine !
I did almost the same when using Photoshop filters.

_________________
"Where am I ?"


Top
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) I can't see the whole plugins menu

7

No new posts How do I get rid of drop down menu

3

No new posts Attachment(s) Missing menu entry for 'Fade Retinex' in 2.10.18

4

No new posts How do I change context menu text color in my theme?

0

No new posts Gimp 2.10.36: Menu - View - Display Filters - Clip : bug

0



* Login  



Powered by phpBB3 © phpBB Group