It is currently Sun Jul 07, 2024 9:51 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 25 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: pm_create_bottle_cap.py
PostPosted: Thu Sep 10, 2020 7:51 am  (#1) 
Offline
GimpChat Member

Joined: Jul 28, 2018
Posts: 1196
This plugin creates a simple "Bottle crown cap", you have the option to change the Size and the color. You need to have layerfx.py and the "shape-path-091.scm (included in the folder) installed, before you run this plugin. Please leave comments. This plugin was created inspired by Conbagui's tutorial found here: http://fav.me/damoiiu

Samples:
Image
Before
Image
After
Image
Image
Image


Revised version #2
I manage to make the Cap color clearer and added text option.

Revised version #3
With the help of MareroQ, I learned a bit how to make the script resize the text and center to the Cap. Thank yo MareroQ :tyspin


Attachments:
pm_create_bottle_cap_Re_3.zip [41.19 KiB]
Downloaded 91 times
pm_create_bottle_cap_Re_2.zip [41.02 KiB]
Downloaded 85 times

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


Last edited by Pocholo on Sun Sep 13, 2020 8:30 am, edited 7 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_create_bottle_cap.py
PostPosted: Thu Sep 10, 2020 8:02 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: Jul 06, 2013
Posts: 2607
Location: California
From the examples it looks like a good plugin but why are the first 2 bottle caps and the last one blurry? The green one is the best one out of all four images.


Top
 Post subject: Re: pm_create_bottle_cap.py
PostPosted: Sat Sep 12, 2020 9:09 am  (#3) 
Offline
GimpChat Member
User avatar

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

Do You accept a tiny bit of text layer addition?


Attachments:
We encourage you to publish to GimpScripts.png
We encourage you to publish to GimpScripts.png [ 109.22 KiB | Viewed 4130 times ]

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: pm_create_bottle_cap.py
PostPosted: Sat Sep 12, 2020 1:52 pm  (#4) 
Offline
GimpChat Member

Joined: Jul 28, 2018
Posts: 1196
Yes MareroQ, please upload your revised version so I can compare with mine.

You know, I'm still trying to learn how to write text inside artwork and everything else. As the matter of fact, I posted the script code and tried to see who of the experienced coder will help or teach me how to do it. But no luck, I had about 80 users looking at the post but nobody answer. Maybe it's a time zone matter.

I guess, 90% of my self-learning has been looking at other scripts and trying to figure out "how to" by myself. You, at least take my scripts and add things or make it better (fix it). By looking at my scripts that you make add ons, it give me some ideas and how to make the code better :hi5 . Thanks for putting some interest on my scripts.

This is my GUI version, I manage to put some text.

Image

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


Top
 Post subject: Re: pm_create_bottle_cap.py
PostPosted: Sun Sep 13, 2020 2:41 am  (#5) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
Typically, this type of plug-in (text + effect + decorative background) is written starting with the text.
You reversed the order - so hence a little problem.
It is difficult to fit text into a selected area with unpredictable text length, number of lines and font type.
To solve this problem, the text must be scaled to the cap size and centered (but probably for the sake of quality it is better to add the text manually - because with the layers preserved, you can further edit).
The least important note is the size of the cap's border (background) but as I wrote before = you left the layers for further editing, so simple use:
Image -> Crop to Content.
Let me know how you download the example - to remove it.

ps. An experienced programmer does not have time for this. ;)

Edit: As announced, the attachment was removed


Attachments:
TestText.png
TestText.png [ 97.34 KiB | Viewed 4054 times ]

_________________
Image

Slava
Ukraini!


Last edited by MareroQ on Sun Sep 13, 2020 2:13 pm, edited 1 time in total.
Top
 Post subject: Re: pm_create_bottle_cap.py
PostPosted: Sun Sep 13, 2020 8:23 am  (#6) 
Offline
GimpChat Member

Joined: Jul 28, 2018
Posts: 1196
MareroQ wrote:
Typically, this type of plug-in (text + effect + decorative background) is written starting with the text.
You reversed the order - so hence a little problem.
It is difficult to fit text into a selected area with unpredictable text length, number of lines and font type.
To solve this problem, the text must be scaled to the cap size and centered (but probably for the sake of quality it is better to add the text manually - because with the layers preserved, you can further edit).
The least important note is the size of the cap's border (background) but as I wrote before = you left the layers for further editing, so simple use:
Image -> Crop to Content.
Let me know how you download the example - to remove it.

ps. An experienced programmer does not have time for this. ;)



Thank you so much, MareroQ, I downloaded the example And used it.

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


Top
 Post subject: Re: pm_create_bottle_cap.py
PostPosted: Sun Sep 13, 2020 12:41 pm  (#7) 
Offline
GimpChat Member
User avatar

Joined: Jan 06, 2020
Posts: 347
Location: The Netherlands
I've tried all three ... but still get error. Then made it through the tutorial.
Update: It has been fixed .. layer fx was in it twice and that collides.


Attachments:
cap.png
cap.png [ 201.99 KiB | Viewed 4001 times ]


Last edited by Jappaloe63 on Wed Sep 16, 2020 9:34 am, edited 1 time in total.
Top
 Post subject: Re: pm_create_bottle_cap.py
PostPosted: Sun Sep 13, 2020 2:22 pm  (#8) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
@Jappaloe1963

What error are you getting in Ver.3?
Maybe you haven't installed the required additional plugins?
Works flawlessly for me. :hi5

_________________
Image

Slava
Ukraini!


Top
 Post subject: Re: pm_create_bottle_cap.py
PostPosted: Sun Sep 13, 2020 3:07 pm  (#9) 
Offline
GimpChat Member
User avatar

Joined: Jul 06, 2013
Posts: 2607
Location: California
I tested out the plugin and it threw an error:
Image
I'm not sure which version it is because I downloaded all of them but I will assume it is version 3 since they all say pm_create_bottle_cap.py.

The font Loki Cola is free for personal and commercial use:
https://www.dafont.com/utopia.d61

The font used in the text, Coca Cola ii is free and can be found here and : https://fonts2u.com/coca-cola-ii.font


Top
 Post subject: Re: pm_create_bottle_cap.py
PostPosted: Sun Sep 13, 2020 5:21 pm  (#10) 
Offline
GimpChat Member

Joined: Jul 28, 2018
Posts: 1196
jappaloe1963 and Mackenzie, the plugin work fine. Download the Revised version 3. Since the all have the same name, make sure you delete the older version from your plugins folder, before placing the new so you don't get confuse.

Image

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


Top
 Post subject: Re: pm_create_bottle_cap.py
PostPosted: Sun Sep 13, 2020 7:02 pm  (#11) 
Offline
GimpChat Member
User avatar

Joined: Jul 06, 2013
Posts: 2607
Location: California
Pocholo,
I still get the same error when using version number 3:
Image

The version of layerfx.py, I'm using is the one for gimp 2.10 which is LayerFX-2.10.py.
Your version of layerfx.py doesn't work for me.


Top
 Post subject: Re: pm_create_bottle_cap.py
PostPosted: Sun Sep 13, 2020 7:35 pm  (#12) 
Offline
GimpChat Member

Joined: Jul 28, 2018
Posts: 1196
That is your layerfx> Color Overlay. There is something wrong with your layerfx.py.
Can you open the plugin on a text editor and copy and paste here, from line: 186 through 190?

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


Top
 Post subject: Re: pm_create_bottle_cap.py
PostPosted: Sun Sep 13, 2020 7:40 pm  (#13) 
Offline
GimpChat Member
User avatar

Joined: Jul 06, 2013
Posts: 2607
Location: California
Pocholo wrote:
That is your layerfx. There is something wrong with your layerfx.py.


LayerFX-2.10 works for the rest of your scripts except this one. I will try layerfx.py to see if that is the problem.

EDIT: Pocholo, your script works. Layerfx.py is what makes it work
Image


Top
 Post subject: Re: pm_create_bottle_cap.py
PostPosted: Sun Sep 13, 2020 8:19 pm  (#14) 
Offline
GimpChat Member

Joined: Jul 28, 2018
Posts: 1196
That is the layerfx that got modified by MareroQ. I ran the plugin with the LayerFX-2.10 and I did not get any error.

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


Top
 Post subject: Re: pm_create_bottle_cap.py
PostPosted: Sun Sep 13, 2020 8:24 pm  (#15) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
@Mackenzieh.

Is Your malfunctioning LayerFX-2.10 version the same as here:
https://www.gimpscripts.net/2020/09/new ... x-210.html ?

_________________
Image

Slava
Ukraini!


Top
 Post subject: Re: pm_create_bottle_cap.py
PostPosted: Sun Sep 13, 2020 11:10 pm  (#16) 
Offline
GimpChat Member
User avatar

Joined: Jul 06, 2013
Posts: 2607
Location: California
Pocholo wrote:
That is the layerfx that got modified by MareroQ. I ran the plugin with the LayerFX-2.10 and I did not get any error.

That's the one that gave me an error but. the one you put in the folder (layerfxpy), didn't. I now have both versions.


Top
 Post subject: Re: pm_create_bottle_cap.py
PostPosted: Sun Sep 13, 2020 11:13 pm  (#17) 
Offline
GimpChat Member
User avatar

Joined: Jul 06, 2013
Posts: 2607
Location: California
MareroQ wrote:
@Mackenzieh.

Is Your malfunctioning LayerFX-2.10 version the same as here:
https://www.gimpscripts.net/2020/09/new ... x-210.html ?


No. The LayerFX-2.10 version, I have is from here:
viewtopic.php?f=9&t=18682&hilit=LayerFX+2.10 (Post #7)


Top
 Post subject: Re: pm_create_bottle_cap.py
PostPosted: Tue Sep 15, 2020 12:03 pm  (#18) 
Offline
GimpChat Member
User avatar

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

These are the same versions - You can try again:
in line 190, instead of True, enter 0 (zero)

_________________
Image

Slava
Ukraini!


Top
 Post subject: Re: pm_create_bottle_cap.py
PostPosted: Wed Sep 16, 2020 1:24 am  (#19) 
Offline
GimpChat Member
User avatar

Joined: Jul 06, 2013
Posts: 2607
Location: California
MareroQ wrote:
Hi Mackenzieh.

These are the same versions - You can try again:
in line 190, instead of True, enter 0 (zero)

I have the .PY version of Layer-FX2.10. When I looked into the Layer-FX2.10 coding, line 190 says this: "Saturation (legacy)", LAYER_MODE_HSV_SATURATION_LEGACY,


Top
 Post subject: Re: pm_create_bottle_cap.py
PostPosted: Wed Sep 16, 2020 7:38 am  (#20) 
Offline
GimpChat Member

Joined: Jul 28, 2018
Posts: 1196
@Mackenzie - I don't think MareroQ meant the Line 190 in the layerfx.py plugin. He meant Line 190 in the Bottle cap plugin.
Open the script in a Text editor and on Line 190 replace the word "True", with uppercase "TRUE". And try it to see if that change anything.

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


Last edited by Pocholo on Wed Sep 16, 2020 2:31 pm, edited 1 time in total.

Top
Post new topic Reply to topic  [ 25 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) create a brush

13

No new posts Attachment(s) How can I create this border?

4

No new posts How to create a displacement map

1

No new posts create an exploding planet

2

No new posts Create and save LUT with Gimp/G'MIC?

4



* Login  



Powered by phpBB3 © phpBB Group