Re: [Gimp-user] Visible Path anchors



Hi, the the way to do this is to use Python to iterate over the Path
coordinates  and
making a paintbrush stroke mark at each of them.

Set the paintbrush for your desired "X" mark, yur image in the last
(right most) tab in GIMP, and your desired layer as the top layer -
them open the Python console with filters->python console
And paste this in there:

img = gimp.image_list()[0]

for stroke in img.vectors[0].strokes:
    for i in range (0, len(stroke.points[0]), 6):
        coords = stroke.points[0][i:i + 2]
        pdb.gimp_paintbrush_default(img.layers[0], 2, coords)

And you are set. The "[0]"  on the first line is the index of the
rightmost image tab, the "[0]" on the "for i" line is for the topmost
path, and the "[0]" on the last line for the topmost layer. CHange
your idnexes according to the desired targets.

On 29 May 2015 at 10:41, Bob <dukebrymin gmail com> wrote:
Hi,
I have a situation where I need to draw some polylines with vertices.
I thought the Path tool would be ideal for drawing the lines, and so
it was.  But I also need there to be a dot, or an X, or some such
marker at each anchor point.  So, is there a way to automatically
place a glyph or something at each anchor location?  Or, failing that,
is there a way to make a mark at each desired anchor point location,
then use those to create a path?

Thanks

--
Meddle not in the affairs of dragons, for thou art crunchy, and taste
good with ketchup.
_______________________________________________
gimp-user-list mailing list
List address:    gimp-user-list gnome org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list
List archives:   https://mail.gnome.org/archives/gimp-user-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]