gimp - Automating Brush Insertion -
very new gimp , unfortunately in need of producing output :)
i looking automate repetitive task of placing instances of existing brushes in image. can point me in direction of command might use achieve this, or tell me if possible gimp scripting?
many thanks
yes, if question mean "stamp" each brush in imagem possible via scriptting.
i'd recomend setting python - not little bit complicated because yu willhave deal with things image width, , such in order fit brushes - should less 30 lines of code.
it can done interactively filters->python-fu->console - there can make pdb calls - press "browse" button check available.
you can do, example, create new image in gimp, open python console, , paste code it:
img = gimp.image_list()[0] size = 30 brush_list = pdb.gimp_brushes_get_list(none)[1] x, y = 0,0 pdb.gimp_context_set_brush_size(size) brush in brush_list: pdb.gimp_context_set_brush(brush) pdb.gimp_paintbrush_default(img.layers[0], 2, [x + size // 2,y + size // 2]) x += size if x + size >= img.width: x = 0 y += size pdb.gimp_displays_flush()
Comments
Post a Comment