It is currently Tue Sep 22, 2026 12:16 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Brush size dilema [Solved]
PostPosted: Sat Jun 29, 2013 10:51 pm  (#1) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4826
Location: Bendigo Vic. Australia
GIMP Version: 2.8.4
Operating System: Windows
GIMP Experience: Beginner Level



I am unable to set brush size in script, whatever I set for size the script takes no notice and uses the default size, I desperately need Ideas

(aset *newpoint* 0 (/ width 2))   ; set the paint array
   (aset *newpoint* 1 (/ height 2))
   (set! brush1-layer (car (gimp-layer-new image width height RGBA-IMAGE "brush1" 100 NORMAL-MODE)))
   (multi-brush-fill-include-layer image brush1-layer layer 0)   ;stack 0=above 1=below
   (gimp-context-set-brush (car brush1))
   **(gimp-context-set-brush-size size)**
   (gimp-paintbrush-default brush1-layer 2 *newpoint*)

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


Last edited by Graechan on Sun Jun 30, 2013 1:27 am, edited 1 time 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: Brush size dilema [Wilbur hates me]
PostPosted: Sun Jun 30, 2013 12:14 am  (#2) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4826
Location: Bendigo Vic. Australia
No change with that proceedure and I set brush size just before the paint command
Quote:
(gimp-context-set-brush-size size)
(gimp-paintbrush brush1-layer 0 2 *newpoint* 0 0))

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


Top
 Post subject: Re: Brush size dilema [Wilbur hates me]
PostPosted: Sun Jun 30, 2013 1:11 am  (#3) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4826
Location: Bendigo Vic. Australia
Wilbur let me get away with this
Quote:
;;;;create the brush layers
(aset *newpoint* 0 (/ width 2)) ; set the paint array
(aset *newpoint* 1 (/ height 2))
(set! brush1-layer (car (gimp-layer-new image width height RGBA-IMAGE "brush1" 100 NORMAL-MODE)))
(multi-brush-fill-include-layer image brush1-layer layer 0) ;stack 0=above 1=below
(gimp-context-set-brush (car brush1))
(gimp-paintbrush-default brush1-layer 2 *newpoint*)
(gimp-layer-scale brush1-layer (* (/ width 100) max-size) (* (/ height 100) max-size) TRUE)
(gimp-layer-resize-to-image-size brush1-layer)

But I'd still like to know why brush-size did not work

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


Top
 Post subject: Re: Brush size dilema [Wilbur hates me]
PostPosted: Sun Jun 30, 2013 1:25 am  (#4) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4826
Location: Bendigo Vic. Australia
My result is filled with 3 diamond brushes

Image

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


Top
 Post subject: Re: Brush size dilema [Solved]
PostPosted: Sun Jun 30, 2013 5:33 am  (#5) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16173
Pack Sprites to shape? Cool. :)
I just had a feeling you would go somewhere with this new G'MIC script Graechan. Bravo!

Happy to hear you fixed the brush issue.

_________________
Image


Top
 Post subject: Re: Brush size dilema [Solved]
PostPosted: Sun Jun 30, 2013 7:43 am  (#6) 
Offline
GimpChat Member
User avatar

Joined: Feb 17, 2011
Posts: 225
If there's real solution to brush size, I'm interested. I have one old script (for inking) which is very usable, but only way to change brush size is to select new brush. In earlier Gimp versions it worked with current brush size, but no more. So, if there's a real solution, I'm interested.

Currently I have done bunch of brushes just for different sizes, but it works well only on certain scale (600dpi) now...


Top
 Post subject: Re: Brush size dilema [Solved]
PostPosted: Tue Jul 16, 2013 10:26 pm  (#7) 
Offline
GimpChat Member

Joined: Jun 12, 2013
Posts: 12
This bugs me also. In my wacom I want to preserve brush size in stylus and one in erraser, and it's the same, that's frustrating. I liked that from gimp 2.6


Top
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group