01-23-2021, 08:58 AM
Hi! Is it possible to draw a path by script-fu? Can u link me a tutorial or documentations?
Draw a path by script-fu
|
01-23-2021, 08:58 AM
Hi! Is it possible to draw a path by script-fu? Can u link me a tutorial or documentations?
I don't use script-fu so I cannot tell you the exact syntax, but in python it goes likes this:
Code: pdb.gimp_context_set_line_width(self.lineWidth) The really important bits are gimp_context_set_stroke_method(STROKE_LINE) (so it uses the Line mode instead of painting ti the brush), and gimp_edit_stroke_vectors(layer,path) to do the actual operation. The rest may or may not be useful. For script-fu, drop pdb. and replace the underscores with dashes (so pdb.gimp_context_set_line_miter_limit becomes gimp-context-set-line-miter-limit) |
« Next Oldest | Next Newest »
|