Skip to main content
Participant
December 15, 2019
Answered

How do you identify pathitem indexes in illustrator programming? (VBS)

  • December 15, 2019
  • 1 reply
  • 423 views

Hello,

I am having trouble identifying the index for pathItems and pathPoints in my code and cant seem to work it out. How would one identify these indexes?

 

Here is my code:

 

Set app = CreateObject("Illustrator.Application")
Set doc = app.ActiveDocument
Set currentPoint = doc.pathItems(0).pathPoints(-1).anchor

currentPoint.LeftDirection = currentPoint
currentPoint.RightDirection = currentPoint
 
Could someone please explain this to me?
Thanks.
This topic has been closed for replies.
Correct answer Gunt.r

update:

information on this topic can be found here:

https://illustrator-scripting-guide.readthedocs.io/scriptingJavascript/objectReferences/

1 reply

Gunt.rAuthorCorrect answer
Participant
December 15, 2019