Gimp-Forum.net
stroke path with a dashed line inside a filter - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: Extending the GIMP (https://www.gimp-forum.net/Forum-Extending-the-GIMP)
+---- Forum: Scripting questions (https://www.gimp-forum.net/Forum-Scripting-questions)
+---- Thread: stroke path with a dashed line inside a filter (/Thread-stroke-path-with-a-dashed-line-inside-a-filter)



stroke path with a dashed line inside a filter - dinasset - 10-13-2018

Hi.
In the pdb interface for stroking path I found all the setting but the "dash preset", which online allows to stroke with a dotted/dashed line.
Maybe I missed something.
Can someone tell me whether and how is it possible to stroke a path (from inside a filter) using a dash preset like interactively?
Many thanks in advance.


RE: stroke path with a dashed line inside a filter - Ofnuts - 10-13-2018

pdb.gimp_context_set_line_dash_pattern(num_dashes, dashes) looks like a good candidate. Documentation is scant, you may have to experiment a bit. Using the parallel get function to check values after changing the settings in Edit>Stroke path may also help.

If you have a good description, submit it as an improvement.


RE: stroke path with a dashed line inside a filter - dinasset - 10-14-2018

Thanks Ofnuts.
I did a few tries with set_dash_pattern, but unsuccessfully
Will try again.