Skip to main content
ajaatshatru
Inspiring
October 9, 2015
Answered

In what order are anchor left control and right control point values returned by entirePath()?

  • October 9, 2015
  • 1 reply
  • 376 views

The entirePath() either returns anchor points which have two values, or it returns an array with three coordinates. I wish to know in that case what is the index of the anchor point, left control point and right control point values?

This topic has been closed for replies.
Correct answer Peter Kahrel

The three values are leftDirection, the anchor point, and rightDirection. 'leftDirection' and 'rightDirection' compete in the competition for worst property names, because they have nothing to do with left and right. Font editors and other programs that deal with Bézier curves use the perfectly transparent 'incoming' and 'outgoing'. These terms make sense. Adobe's don't.

To find out what the values stand for, draw a simple curve with three points, then use a script to write the values to the ESTK's console. Open the Transform panel and check the values there what what you printed in the console.

A major problem in all this is that when you select a point with the direct selection tool, app.selection[0] doesn't return that point (I forget now what it does return), and getting a handle on a selected point is an ugly hack.

Peter

1 reply

Peter Kahrel
Community Expert
Peter KahrelCommunity ExpertCorrect answer
Community Expert
October 9, 2015

The three values are leftDirection, the anchor point, and rightDirection. 'leftDirection' and 'rightDirection' compete in the competition for worst property names, because they have nothing to do with left and right. Font editors and other programs that deal with Bézier curves use the perfectly transparent 'incoming' and 'outgoing'. These terms make sense. Adobe's don't.

To find out what the values stand for, draw a simple curve with three points, then use a script to write the values to the ESTK's console. Open the Transform panel and check the values there what what you printed in the console.

A major problem in all this is that when you select a point with the direct selection tool, app.selection[0] doesn't return that point (I forget now what it does return), and getting a handle on a selected point is an ugly hack.

Peter

ajaatshatru
Inspiring
October 9, 2015

Thanks a lot!