Skip to main content
yuank84837609
Participant
July 26, 2018
Question

t value calculation from a point position with known XY axis on a Bezier curve

  • July 26, 2018
  • 2 replies
  • 885 views

Hi here

In Illustrator, for an existing cubic Bezier curve, if I select one point on the path , how could I calculate the t value using Script?

In theory, there should be more less one answer. I did some sketch paper job how couldn't figure out easily.

Please help.

Thanks

Kevin

This topic has been closed for replies.

2 replies

Participating Frequently
July 27, 2018

Actually, it will be a task of calculating a parameter of a point on a curve closest to a certain point.

A way to do this can be found at the following site.

A Primer on Bezier Curves - 35 - Projecting a point onto a Bezier curve

https://pomax.github.io/bezierinfo/#projections

Or perhaps you already know this method and may be looking for a simpler or more efficient way.

I would also like to know it if it exists.

yuank84837609
Participant
July 27, 2018

Hi Sato san

Yes I am heading to the iterative methods as you told, to find the closed t point with the tolerance of distance.

BTW, I learned  a lot with your previous posts about Scripting.

Thanks a lot

Kevin

Loic.Aigon
Legend
July 26, 2018

t as tangeant ?