Switch to full style
Post all Gimp scripts and script writing questions here
Post a reply

Python Fu gimp_paintbrush

Thu Apr 20, 2017 8:41 am

I'm trying to stamp an image with an overlay and when I use gimp_paintbrush it stamps with the current foreground color, but the brush is multicolored. The documentation says that it will do that. Is there a hack to get it to do what I want it to do?
Thanks!

Re: Python Fu gimp_paintbrush

Thu Apr 20, 2017 9:30 am

ironcates wrote:I'm trying to stamp an image with an overlay and when I use gimp_paintbrush it stamps with the current foreground color, but the brush is multicolored. The documentation says that it will do that. Is there a hack to get it to do what I want it to do?
Thanks!

Does the brush appear multicolored within the Brush Toolbox?

Such as the brush,
which can be seen in the screenshot below.

Image

Re: Python Fu gimp_paintbrush

Thu Apr 20, 2017 9:38 am

Yes, I figured out my error. My gradient length was set to 1 instead of 0.
This ended up working:
Code:
pdb.gimp_paintbrush(drawable, 0, 2, (image.width/2,image.height/2), PAINT_CONSTANT, 0)

Re: Python Fu gimp_paintbrush

Thu Apr 20, 2017 9:43 am

ironcates wrote:Yes, I figured out my error. My gradient length was set to 1 instead of 0.
This ended up working:
Code:
pdb.gimp_paintbrush(drawable, 0, 2, (image.width/2,image.height/2), PAINT_CONSTANT, 0)

:jumpclap
Post a reply