I wrote this to complete the tutorials on “how to customize gimp”
The first http://www.gimptalk....p?t=154&start=1 was about his look (themes, fonts) and was written by Sean Michael
The second ,from Droz928 http://www.gimptalk....ash-1585-1.html deal with the “splash screen” icons and “logo splash”
I see this as a Trilogy , this is the third chapter :how to customize the gimp menus
WE WILL NOT MOVE ANYTHING THAT CAME AS DEFAULT IN GIMP MENU, that could NOT be done without trouble
BUT we can choose where ,in the menu ,we want add NEW, EXTRA plug-in.
This is trivial for “script fu.” and “tiny fu”,
To do it you don't need knowledge of scripting, just you will need to follow this tut
AS Example here i customized my Layer Menu
i want add to the EDIT menu a “Apply Image”(as it is called by photoshoppers ) feature.
In Gimp language that means : copy visible+paste (as floating selection)+add a new layer, ...BUT "Apply Image" is just 1click
This in Gimp is still a sort of missed feature, but " merge-copy "script from Kward
http://www.deviantar...ation/28607825/ add this function
I like it but i don't want it in the script fu or in the filter menu...i need it in my EDIT menu
Well i could not put it exactly where i wanted (after “copy visible”) but how you can see i get very close
How to...quite simple, you don't need to be a developer to do it, you need only to be able to spot a path.
To open the script we just need ...the notepad (notepad in win...linux users could use any text editor )
And this is what we see
(set! theImage inimage)
(set! theHeight (car (gimp-image-height theImage)))
(set! theWidth (car (gimp-image-width theImage)))
(set! copy-layer (gimp-layer-new theImage theWidth theHeight 1 "copied layer" 100 0) )
(gimp-drawable-fill (car copy-layer) 3)
(gimp-image-add-layer theImage (car copy-layer) -1)
(set! copy-float (car (gimp-edit-paste (car copy-layer) 0)))
(gimp-image-lower-layer theImage (car copy-layer))
(gimp-image-raise-layer-to-top theImage (car copy-layer))
"copies the visable layers to a new layer"
SF-IMAGE "SF-IMAGE" 0
SF-DRAWABLE "SF-DRAWABLE" 0
HERE IT'S THE PATH:
That will put the script called “merge-copy” in : Image menu\Script-fu\Gimp-talk.com\merge-copy
IF we change the path in this way
The same script will now be moved in : Image /Edit Menu/merge-copy :h:
Is not simple ?
1 Paths are case sensitive: “/edit/merge-copy...” will not work !
2 typo are not allowed: if i mistype as “/Edits/merge-copy...” Gimp will attempt to create a new image menu called “ Edits”
3 A “Multiple” script as this one "Layer Effects/layer styles"...
...Will have also multiple path...(in this case are 11 )and all 11 paths need to be coerent...if you overlook one ... or mistype a single letter no any of those 11 scripts will work.
Happy Gimp hacking!!
PS You can't open and edit .exe files with notepad in the some way :l:
You can edit not only the position but also the name of the script (for example to give it a more hintful name)
As esemple i found "visible to new layer" more long but more clear then "merge-copy" so i edit the name
and this is the result in the Edit menu