Sg2.9
Line Break Solution
Recent RSS
Line Break Solution
From:  Neil
Date:  10. February 2012, 23:32

Hi

As I haven't had any bites on the getIntersection 'bug', can anyone suggest an alternative method to create a 'line break' tool?

The tool needs to break a curve leaving a gap of (say) 1mm.

Any alternative options ?

Cheers

Neil

Re: Line Break Solution
From:  pqbd
Date:  11. February 2012, 00:04

The getIntersections() method is not exact, and a couple of bugs are logged on the Scriptographer github page.

I've been working on a tool that's a follow up to this post, but I've been swamped lately.

Here's the basic workflow though:
• Copy selected paths, and give a stroke of 0.15pt, no fill
• Expand paths
• Use the Pathfinder.intersect() function to get a quadrilateral polygon where the paths intersect
• use the center point of each polygon with getLocation() to stick it to a curve
• cut the curve

It's inefficient, but it recognizes all path intersections that I've thrown at it

Scripts
08.08.14, 15:24
15.05.14, 14:23
02.03.14, 19:16
18.11.13, 14:48
22.03.13, 03:05
22.02.13, 15:45
Posts
10.01.17, 16:37
19.02.16, 06:03
19.02.16, 06:00
17.01.16, 11:00
12.01.16, 13:10
25.11.15, 08:19
Script of the Moment
Crumpler 23.07.10