It is currently Fri Apr 19, 2024 2:08 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: A script alteration request.
PostPosted: Thu Dec 06, 2012 12:44 pm  (#1) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
This script shows up in Layers > All Layers to image size.

Would it be possible to make it show up in the Layers right-click menu, also?


Attachments:
fp-script-fu-all-layers-to-image-size.scm [1.46 KiB]
Downloaded 106 times

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein
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: A script alteration request.
PostPosted: Thu Dec 06, 2012 2:01 pm  (#2) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
Not sure about "also"
RobA gradients scripts install usually in the right click gradient menu i believe would be possible use same method to install in the layer manu
(i mean use as template the path of the script but replacing "gradient" with "layer")

Well ,if you need more details you may want to wait the GC scripts guru, that is what i would try

_________________
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: A script alteration request.
PostPosted: Thu Dec 06, 2012 3:41 pm  (#3) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
Change the string "<Image>/Layer/All Layers to Image Size" to "<Layers>/All Layers to Image Size".

If you want the command to appear in both places, you will need to use the 'script-fu-menu-register' procedure. An example of this can be seen in my Align Down script.

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: A script alteration request.
PostPosted: Thu Dec 06, 2012 6:45 pm  (#4) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
Thank you, saulgoode. For some reason I like that right-click menu better than the Layer drop down in the image menu. Just a strange quirk of mine. Got it fixed. :bigthup

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: A script alteration request.
PostPosted: Thu Dec 06, 2012 7:07 pm  (#5) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Thank you, Saulgoode. and 'O' another thing learnt :yes

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: A script alteration request.
PostPosted: Thu Dec 13, 2012 3:49 pm  (#6) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
I like to register scripts for layers in both locations, as suggested by saulgoode. That way it is easier to find for any type of user :)

-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 Post subject: Re: A script alteration request.
PostPosted: Thu Dec 13, 2012 6:46 pm  (#7) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
RobA wrote:
I like to register scripts for layers in both locations, as suggested by saulgoode. That way it is easier to find for any type of user :)

Also, if the command is in the context (right-click) menu then you are sure about which layer/channel/path the script is working with. However, if the command is ONLY in the context menu then you can't assign a keyboard shortcut to it -- the command must be added to the image window menus to do that.

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Script request

3

No new posts My shameful n00b request for help

3

No new posts Attachment(s) pm_create_a_water_drop_text.py (Issabella request) updated

17

No new posts Attachment(s) pm_plexi_text_effect plugin (Issabella request) version_2

13

No new posts Request- Make a scriptfu out of my X Window stroke outline hack

1



* Login  



Powered by phpBB3 © phpBB Group