It is currently Tue Aug 18, 2026 12:02 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 53 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject: Re: Lace Script Rel2 [with Alpha-to-Logo]
PostPosted: Mon Jun 10, 2013 10:19 am  (#41) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6946
Location: Somewhere in GIMP
Thank you, Graechan! It's working great now. :bigthup

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


Top
 Post subject: Re: Lace Script Rel2 [with Alpha-to-Logo]
PostPosted: Mon Jun 10, 2013 8:15 pm  (#42) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4826
Location: Bendigo Vic. Australia
Thank you 'O' Rel2 was to add the Alpha-to-Logo and Rel3 was going to be a bugfix release but I don't have any bugs at Rel2 script works fine in 2.8.2,2.6.12 and GimPainter :yes

The Alpha-to-Logo can also be used to create a lace border if you select-all and select border

Image

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


Top
 Post subject: Re: Lace Script Rel2 [with Alpha-to-Logo]
PostPosted: Tue Jun 11, 2013 4:59 am  (#43) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 8457
Location: On the other side of your screen
Image
Border around picture. I made the lace larger too

_________________
Image
Free Fun Photo Editing & resources
Poems from the Lord
Gimp Newby
Gimp version 3.2.4 and GMIC-Qt 4.0.2 OS :- Windows 10 Home 64


Top
 Post subject: Re: Lace Script Rel2 [with Alpha-to-Logo]
PostPosted: Tue Jun 11, 2013 8:38 am  (#44) 
Offline
GimpChat Member
User avatar

Joined: Apr 07, 2010
Posts: 14182
cool apron gram, too nice to use.

_________________
Image


Top
 Post subject: Re: Lace Script Rel2 [with Alpha-to-Logo]
PostPosted: Tue Jun 11, 2013 1:14 pm  (#45) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6946
Location: Somewhere in GIMP
Graechan, can you make the script ignore the dynamics? If Random Color or Random Size are selected in Dynamics, the lace changes to the color of the active gradient, and Random Size changes size of the brush randomly.

Also, if another Paint Tool such as Pencil, Eraser, or Air brush is selected, the script uses the selected paint tool. Can you make it so that the script uses only the Paintbrush?

O

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


Top
 Post subject: Re: Lace Script Rel2 [with Alpha-to-Logo]
PostPosted: Wed Jun 12, 2013 2:05 am  (#46) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4826
Location: Bendigo Vic. Australia
Quote:
if another Paint Tool such as Pencil, Eraser, or Air brush is selected, the script uses the selected paint tool. Can you make it so that the script uses only the Paintbrush?

Would the PDB command (gimp-context-set-paint-method "gimp-paintbrush") suffice or does anyone have a better suggestion

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


Top
 Post subject: Re: Lace Script Rel2 [with Alpha-to-Logo]
PostPosted: Wed Jun 12, 2013 4:15 pm  (#47) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14831
Location: roma, italy
in my opinion, it's OK, but better to PM Saulgoode or Fluffybunny about that
(if none of the two posts here his/her suggestion)

_________________
"Where am I ?"


Top
 Post subject: Re: Lace Script Rel2 [with Alpha-to-Logo]
PostPosted: Wed Jun 12, 2013 7:02 pm  (#48) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4826
Location: Bendigo Vic. Australia
Dinasset in rel3 I have included your suggestion about the dynamic's for 2.8 (problem non-existant in 2.6)

and also 'O' suggestion of setting the active paint-tool

(let* (
         (image (car (gimp-image-new 256 256 RGB)))         
         (border (/ font-size 4))
       (font (if (> (string-length font-in) 0) font-in (car (gimp-context-get-font))))
         (size-layer (car (gimp-text-fontname image -1 0 0 text border TRUE font-size PIXELS font)))
         (final-width (car (gimp-drawable-width size-layer)))
         (final-height (car (gimp-drawable-height size-layer)))
       (active-gradient (car (gimp-context-get-gradient)))
       (active-fg (car (gimp-context-get-foreground)))
       (active-bg (car (gimp-context-get-background)))
         (text-layer 0)
         (width 0)
         (height 0)
         (bkg-layer 0)
       (ver 2.8)
       (lace-layer 0)
       (name "Lace_Brush")         
         )
   (cond ((not (defined? 'gimp-image-get-item-position)) (set! ver 2.6))) ;define the gimp version   
      
    (gimp-context-push)
   (gimp-context-set-paint-method "gimp-paintbrush")
   (if (= ver 2.8) (gimp-context-set-dynamics "Dynamics Off"))
   (gimp-context-set-foreground '(0 0 0))
   (gimp-context-set-background '(255 255 255))

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


Top
 Post subject: Re: Lace Script Rel2 [with Alpha-to-Logo]
PostPosted: Thu Jun 13, 2013 12:49 am  (#49) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14831
Location: roma, italy
thanks Graechan! nice for all 2.8 users, all of them will be grateful for the addition.
(the suggestion about 'Dynamics off' came from my "amica" Fluffybunny...)

_________________
"Where am I ?"


Top
 Post subject: Re: Lace Script Rel3
PostPosted: Thu Jun 13, 2013 1:34 am  (#50) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4826
Location: Bendigo Vic. Australia
Release 3 has been uploaded to the initial post, please download and install as it's an important bugfix

Thank you to all who contributed to this release

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


Top
 Post subject: Re: Lace Script Rel3 13/06/2013
PostPosted: Thu Jun 13, 2013 4:15 am  (#51) 
Offline
GimpChat Member
User avatar

Joined: Apr 07, 2010
Posts: 14182
Thanks Graechan.

_________________
Image


Top
 Post subject: Re: Lace Script Rel3 13/06/2013
PostPosted: Thu Jun 13, 2013 12:55 pm  (#52) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16161
Here are my defaults.Gimp-2.8.4 32 bit Parthas installed version.
Image

_________________
Image


Top
 Post subject: Re: Lace Script Rel3 13/06/2013
PostPosted: Thu Jun 13, 2013 8:11 pm  (#53) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4826
Location: Bendigo Vic. Australia
This Script was definitely a learning curve for me and I'm not sure the trouble I went to to make it run in 2.8 and 2.6 was worth it :gaah

We must say Goodbye to 2.6 soon

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


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

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group