Bulia wrote: "Also, I think it can be done easy enough without scripting: snap the nodes of the second segment to the first using "snap nodes to path", so they become parallel, then move the second one away to where you want it to be. Or just duplicate the first one and move away the copy."
I guess I never thought about creating a parallel line that way. I guess I need to stop thinking like a CAD user and start thinking like an Inkscape user. :]
Still, the same basic concept would apply to some other things that I had in mind.
Does Inkscape present selected items to an extension script in the order of selection? If so, in which order?
Thanks for the quick response.
Scott Huey
On 10/11/07, bulia byak <buliabyak@...400...> wrote:
On 10/11/07, Redefined Horizons <redefined.horizons@...400...> wrote:
I want to write a script that makes one line segment parallel or perpendicular to another line segment.
If these segments are indeed segments, i.e. parts of some paths, then you can't do this with scripting yet because scripts only get object selection, not node selection.
Also, I think it can be done easy enough without scripting: snap the nodes of the second segment to the first using "snap nodes to path", so they become parallel, then move the second one away to where you want it to be. Or just duplicate the first one and move away the copy.
-- bulia byak Inkscape. Draw Freely. http://www.inkscape.org