It is currently Sun Jun 30, 2024 10:25 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 18 posts ] 
Author Message
 Post subject: pm_icon_pressed_effect.py
PostPosted: Tue Aug 25, 2020 10:57 pm  (#1) 
Offline
GimpChat Member

Joined: Jul 28, 2018
Posts: 1196
For this plugin to work as expected you need to create a 500 x 500 px icon gray-scale with transparency and save it as .gbr

Select a brush from GIMP brushes dialog and click OK. The script will produce a pressed icon with the current brush.

Ps I manage to create some media icons for your convenience, use them as you will. Have fun creating your icons.


These are sample created with the plugin:

Image
Image
Image
Image


Attachments:
pm_icon_pressed_effect media icons included.zip [189.42 KiB]
Downloaded 116 times

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


Last edited by Pocholo on Thu Aug 27, 2020 7:37 pm, edited 3 times in total.
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: pm_icon_pressed_effect.py
PostPosted: Wed Aug 26, 2020 1:37 am  (#2) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Nicely done Pocholo, but could a use active brush option be used as it would save typing in the brush name.

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


Top
 Post subject: Re: pm_icon_pressed_effect.py
PostPosted: Wed Aug 26, 2020 7:59 am  (#3) 
Offline
GimpChat Member

Joined: Jul 28, 2018
Posts: 1196
Graechan wrote:
Nicely done Pocholo, but could a use active brush option be used as it would save typing in the brush name.


Thank you Graechan. Can you give me an example of what you're referring "active brush option"?

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


Top
 Post subject: Re: pm_icon_pressed_effect.py
PostPosted: Wed Aug 26, 2020 9:22 am  (#4) 
Offline
GimpChat Member
User avatar

Joined: May 10, 2013
Posts: 1389
Location: FInland
Means that the brush being currently active, is used.
gimp-context-get-brush?

This looks like the mini-tut I made year ago ;)

viewtopic.php?f=10&t=17733


Top
 Post subject: Re: pm_icon_pressed_effect.py
PostPosted: Wed Aug 26, 2020 1:01 pm  (#5) 
Offline
GimpChat Member
User avatar

Joined: Jul 06, 2013
Posts: 2607
Location: California
Nidhogg wrote:
Means that the brush being currently active, is used.
gimp-context-get-brush?

This looks like the mini-tut I made year ago ;)

viewtopic.php?f=10&t=17733


It's actually one of conbagui's tutorials which can be found here: https://www.deviantart.com/conbagui/art ... -817657875


Top
 Post subject: Re: pm_icon_pressed_effect.py
PostPosted: Wed Aug 26, 2020 1:39 pm  (#6) 
Offline
GimpChat Member

Joined: Jul 28, 2018
Posts: 1196
Nidhogg wrote:
Means that the brush being currently active, is used.
gimp-context-get-brush?

This looks like the mini-tut I made year ago ;)

viewtopic.php?f=10&t=17733


So, how about that? Two users almost at the same time creating a this tutorial. :jumpclap

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


Top
 Post subject: Re: pm_icon_pressed_effect.py
PostPosted: Wed Aug 26, 2020 2:03 pm  (#7) 
Offline
GimpChat Member
User avatar

Joined: Jul 06, 2013
Posts: 2607
Location: California
Pocholo, I tried your plugin and I came up with this:
Image

The image I used was this one: Image

I know the image isn't grey scale but it is transparent and the plugin works.


Top
 Post subject: Re: pm_icon_pressed_effect.py
PostPosted: Wed Aug 26, 2020 2:36 pm  (#8) 
Offline
GimpChat Member

Joined: Jul 28, 2018
Posts: 1196
mackenzieh wrote:
Pocholo, I tried your plugin and I came up with this:
[ Image ]

Is there a way to change the background color before creating the icon?
The image I used was this one: [ Image ]

I know the image isn't grey scale but it is transparent and the plugin works.


No. You created an RGB brush when you did not make it as Gray scale. GIMP have a procedure for the image and not for a particular item. You need to convert to "gray scale" before you create the brush.

Gray scale brushes will paint the image using the palette Foreground/Background.

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


Top
 Post subject: Re: pm_icon_pressed_effect.py
PostPosted: Wed Aug 26, 2020 2:51 pm  (#9) 
Offline
GimpChat Member

Joined: Jul 28, 2018
Posts: 1196
@Graechan and Nidhogg: I changed it for the Current brush so you can choose the brush in the Brushes dialog before running the script, and I changed the file on the initial thread. Thank you guys for the input. :hi5

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


Top
 Post subject: Re: pm_icon_pressed_effect.py
PostPosted: Wed Aug 26, 2020 3:03 pm  (#10) 
Offline
GimpChat Member
User avatar

Joined: Jul 06, 2013
Posts: 2607
Location: California
Pocholo wrote:
mackenzieh wrote:
Pocholo, I tried your plugin and I came up with this:
[ Image ]

Is there a way to change the background color before creating the icon?
The image I used was this one: [ Image ]

I know the image isn't grey scale but it is transparent and the plugin works.


No. You created an RGB brush when you did not make it as Gray scale. GIMP have a procedure for the image and not for a particular item. You need to convert to "gray scale" before you create the brush.

Gray scale brushes will paint the image using the palette Foreground/Background.


Oh. I'll try it again but the script still works if even the the image isn't grayscale. I was just showing you that the plugin still works whether the image is grey scale or not.

Edit: Here's the grayscale icon instead of the one I created by accident which wasn't grayscale: Image


Top
 Post subject: Re: pm_icon_pressed_effect.py
PostPosted: Thu Aug 27, 2020 9:20 am  (#11) 
Offline
GimpChat Member
User avatar

Joined: May 10, 2013
Posts: 1389
Location: FInland
Pocholo wrote:
@Graechan and Nidhogg: I changed it for the Current brush so you can choose the brush in the Brushes dialog before running the script, and I changed the file on the initial thread. Thank you guys for the input. :hi5

That's good. Can you attach the updated plug-in in the first post to test it, thank you.


Top
 Post subject: Re: pm_icon_pressed_effect.py
PostPosted: Thu Aug 27, 2020 2:18 pm  (#12) 
Offline
GimpChat Member

Joined: Jul 28, 2018
Posts: 1196
Nidhogg wrote:
Pocholo wrote:
@Graechan and Nidhogg: I changed it for the Current brush so you can choose the brush in the Brushes dialog before running the script, and I changed the file on the initial thread. Thank you guys for the input. :hi5

That's good. Can you attach the updated plug-in in the first post to test it, thank you.


I already did it. I have some help from MareroQ also.

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


Top
 Post subject: Re: pm_icon_pressed_effect.py
PostPosted: Thu Aug 27, 2020 3:57 pm  (#13) 
Offline
GimpChat Member

Joined: Dec 19, 2018
Posts: 158
In the plugin interface there is the option to choose the brush color and also the background color.
But the results are always in the same colors.


Top
 Post subject: Re: pm_icon_pressed_effect.py
PostPosted: Thu Aug 27, 2020 7:39 pm  (#14) 
Offline
GimpChat Member

Joined: Jul 28, 2018
Posts: 1196
Sorry krikor, I uploaded the unfinished script. I uploaded the right one now

Go ahead and download it again and let me know.

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


Top
 Post subject: Re: pm_icon_pressed_effect.py
PostPosted: Thu Aug 27, 2020 8:55 pm  (#15) 
Offline
GimpChat Member
User avatar

Joined: Jul 06, 2013
Posts: 2607
Location: California
Pocholo,

It works for me.
Image


Top
 Post subject: Re: pm_icon_pressed_effect.py
PostPosted: Fri Aug 28, 2020 8:17 am  (#16) 
Offline
GimpChat Member

Joined: Dec 19, 2018
Posts: 158
Pocholo wrote:
Sorry krikor, I uploaded the unfinished script. I uploaded the right one now

Go ahead and download it again and let me know.

Pocholo, now the color selection is ok!
But ... the color generated for Icon-Dropshadow remains Wallace's color, be7dcf, regardless of the selected colors.

Thanks for the plugin and for updating it.


Top
 Post subject: Re: pm_icon_pressed_effect.py
PostPosted: Fri Aug 28, 2020 2:40 pm  (#17) 
Offline
GimpChat Member

Joined: Jul 28, 2018
Posts: 1196
Krikor wrote:
Pocholo wrote:
Sorry krikor, I uploaded the unfinished script. I uploaded the right one now

Go ahead and download it again and let me know.

Pocholo, now the color selection is ok!
But ... the color generated for Icon-Dropshadow remains Wallace's color, be7dcf, regardless of the selected colors.

Thanks for the plugin and for updating it.


Open the script with a text editor and change the color on the line 122 to white (255, 255, 255)

120 #Drop Shadow
121   pdb.python_layerfx_drop_shadow(img, iconLayer,
122                       (255, 255, 255),   #color

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


Top
 Post subject: Re: pm_icon_pressed_effect.py
PostPosted: Fri Aug 28, 2020 5:46 pm  (#18) 
Offline
GimpChat Member
User avatar

Joined: Jul 06, 2013
Posts: 2607
Location: California
Krikor,

The plugin works for me.

Here's default:
Image

Here's one with different colors:
Image


Top
Post new topic Reply to topic  [ 18 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Icon Pack

6

No new posts Attachment(s) Gimp .xcp icon previews

9

No new posts Creating GIMP icon theme

1

No new posts chain icon of the scale tool

3

No new posts Creating GIMP icon theme

1



* Login  



Powered by phpBB3 © phpBB Group