It is currently Mon Jul 22, 2024 8:34 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 57 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject: Re: Words To Shapes (Circles/Houses) combined script.
PostPosted: Fri Sep 09, 2016 6:43 pm  (#21) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
But what is more Important, the original radius requested or the original Image size?

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


Top
 Post subject: Re: Words To Shapes (Circles/Houses) combined script.
PostPosted: Fri Sep 09, 2016 8:20 pm  (#22) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4039
Location: Canada
I don't know :hehe

_________________
TinT


Top
 Post subject: Re: Words To Shapes (Circles/Houses) combined script.
PostPosted: Fri Sep 09, 2016 8:36 pm  (#23) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
Who says you cant have a predetermined radius, and if the user is off, by chance, just throw out an if-then-else statement?

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: Words To Shapes (Circles/Houses) combined script.
PostPosted: Fri Sep 09, 2016 9:01 pm  (#24) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
I believe it is more Important to keep the original Image size if possible and in this case it is by changing radius to 'nominal radius'
also (width (car (gimp-image-width image))) could be (width (car (gimp-drawable-width layer))) and add the new layers above the active layer rather at top

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


Top
 Post subject: Re: Words To Shapes (Circles/Houses) combined script.
PostPosted: Fri Sep 09, 2016 9:33 pm  (#25) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4039
Location: Canada
Okay,
I put drawable's width and height as suggested.
And I put -1 as default radius if radius is -1 It'll try to fit the shapes to the active layer's width.
updated post #1 to release 4.
Image

_________________
TinT


Top
 Post subject: Re: Words To Shapes (Circles/Houses) combined script.
PostPosted: Fri Sep 09, 2016 9:49 pm  (#26) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Will it also add the new layers above the active layer

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


Top
 Post subject: Re: Words To Shapes (Circles/Houses) combined script.
PostPosted: Fri Sep 09, 2016 9:54 pm  (#27) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4039
Location: Canada
whoops forgot that, just added it now release 5. :hehe

_________________
TinT


Top
 Post subject: Re: Words To Shapes (Circles/Houses) combined script.
PostPosted: Fri Sep 09, 2016 10:38 pm  (#28) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
[align=center]above and in the same layer group
(gimp-image-insert-layer image newlayer (car (gimp-item-get-parent oldlayer)) (+ (car (gimp-image-get-layer-position image oldlayer)) stack));stack 0=above 1=below ;oldlayer= the active layer

or (gimp-image-insert-layer image newlayer (car (gimp-item-get-parent oldlayer) -1)

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


Top
 Post subject: Re: Words To Shapes (Circles/Houses) combined script.
PostPosted: Sat Sep 10, 2016 12:06 am  (#29) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4039
Location: Canada
I just did a house then circle then realized they combine to make a tombstone shape so i added "Tombstone" shape. (Release 6, in Post #1)

Image

_________________
TinT


Top
 Post subject: Re: Words To Shapes (Circles/Houses) combined script.
PostPosted: Sat Sep 10, 2016 12:24 am  (#30) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14720
Location: USA
trandoductin wrote:
I just did a house then circle then realized they combine to make a tombstone shape so i added "Tombstone" shape. (Release 6, in Post #1)

[ Image ]

Sweet! :clap And Halloween is just around the corner too.

Hey if you can create a triangle you can add a circle and get a ice cream cone. :hi5

Image

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Words To Shapes (Circles/Houses) combined script.
PostPosted: Sat Sep 10, 2016 12:53 am  (#31) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4039
Location: Canada
added Ice cream cone shape (I tried triangle but the left and right of triangle is so narrow couldn't really see text so I didn't add it).
Image

_________________
TinT


Top
 Post subject: Re: Words To Shapes (Circles/Houses/Tombstone/IcecreamCone)
PostPosted: Sat Sep 10, 2016 3:57 am  (#32) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14720
Location: USA
Shame you can't add the triangle just yet. But the cone is cool! :)
Thanks Tran.

Image

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Words To Shapes (Circles/Houses/Tombstone/IcecreamCone)
PostPosted: Sat Sep 10, 2016 8:45 am  (#33) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Original Image
Image
Menu Settings
Image
Result
Image
my image started 640x520 and finished 640x640 on all Shapes

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


Top
 Post subject: Re: Words To Shapes (Circles/Houses/Tombstone/IcecreamCone)
PostPosted: Sat Sep 10, 2016 9:40 am  (#34) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4039
Location: Canada
darn cut and paste bug Grachaen..
please try lastest release 8.

_________________
TinT


Top
 Post subject: Re: Words To Shapes (Circles/Houses/Tombstone/IcecreamCone)
PostPosted: Sat Sep 10, 2016 9:46 am  (#35) 
Offline
GimpChat Member
User avatar

Joined: Apr 08, 2010
Posts: 5420
Location: Northwest Ohio
Any chance this can be made to work for any selection instead of a pre-determined shape?


Top
 Post subject: Re: Words To Shapes (Circles/Houses/Tombstone/IcecreamCone)
PostPosted: Sat Sep 10, 2016 11:07 am  (#36) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4039
Location: Canada
nope at least not by me...i don't know how to calculate arbitrary shapes.

_________________
TinT


Top
 Post subject: Re: Words To Shapes (Circles/Houses/Tombstone/IcecreamCone)
PostPosted: Sat Sep 10, 2016 11:08 am  (#37) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4039
Location: Canada
added Stop Sign shape into Rel 9 (post #1).
Image

_________________
TinT


Top
 Post subject: Re: Words To Shapes (Circles/Houses/Tombstone/IcecreamCone/Stopsign)
PostPosted: Sat Sep 10, 2016 6:15 pm  (#38) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4039
Location: Canada
heart shape...
Image

_________________
TinT


Top
 Post subject: Re: Words To Shapes (Circles/Houses/Tombstone/IcecreamCone/Stopsign)
PostPosted: Sat Sep 10, 2016 6:34 pm  (#39) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4039
Location: Canada
fixed heart shape calculation bug.
Image

_________________
TinT


Top
 Post subject: Re: Words To Circles/Houses/Tombstone/IcecreamCone/Stopsign/Hearts
PostPosted: Sat Sep 10, 2016 8:17 pm  (#40) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
here's something to think about, instead of (gimp-edit fill) for the bkg offering a translucent effect with gimps Xach effect
Image
I could show you how to add this to the script

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


Top
Post new topic Reply to topic  [ 57 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Hearts Image Pipe

0

No new posts Attachment(s) Create a Mother's Day Hearts Frame plugin

7

No new posts Attachment(s) Words to shape

2

No new posts Spin-art Grid kind'a like Kandinsky's circles but for any image

1

No new posts Attachment(s) New G'MIC filter "Tangential Circles"

31



* Login  



Powered by phpBB3 © phpBB Group