Sg2.9
Uneven distribution in curves...
Recent RSS
Uneven distribution in curvesToPoints
From:  Andre
Date:  13. February 2009, 18:43

Hi all,

i was wondering if there's another posibility to distribute points along a path than with curvesToPoints.

The problem is that when i use art.curvesToPoints(dist,10000); i get a very uneven distribution of the points, as seen here:

Thanks !
Andre

Re: Uneven distribution in curvesToPoints
From:  Hiroyuki Sato
Date:  17. February 2009, 15:56

Indeed. Maybe that function does not fit for that purpose.

Curve.getParmeterWithLength() brings a better result.
Though it requires a bit complicated process.

Here's a sample code as attachment.
(I think there must be cleaner codes)

Re: Uneven distribution in curvesToPoints
From:  Andre
Date:  23. February 2009, 13:26

Hiroyuki,
thank you so much! your script works exactly the way i was looking for.
i also checked your website -- awesome stuff.
how did you learn it? i can program, but till now i didn't find the functions of SG and illustrator so well documented. is there any good reference that i maybe have overlooked?

thanks again & a nice day
andre

Re: Uneven distribution in curvesToPoints
Date:  23. February 2009, 14:19

We'll be working on the improving the documentation and creating tutorials during the coming year, please stay tuned!

Re: Uneven distribution in curvesToPoints
From:  Hiroyuki Sato
Date:  24. February 2009, 13:08

Andre,
AI SDK's document can be a good reference of Sg's functions.
However, to understand some of functions for bezier curve
that Sg (AI SDK) has, it's unavoidable to face
the math definition of the bezier curve.
I learned about it by reading various websites of math.
It was a process with confusion and annoyance,
and it'll be same for most of Sg users -- who intend to
design, not to study math.

I think there should be an intuitive tutorial for
scripting bezier curve.
I'm considering to write it.

Re: Uneven distribution in curvesToPoints
From:  Andre
Date:  27. February 2009, 04:22

Hiroyuki & Jonathan,

thanks for the replys, i'll also try that i get better with it so i can contribute as soon as i can something. cheers guys!
andre

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
Newton Curve 08.09.11