Skip to main content
Hey Evgenii
Inspiring
March 8, 2023
Answered

Access vertices or shapes made by pen tool via extendscript

  • March 8, 2023
  • 1 reply
  • 551 views

I am trying to come up with a way to round corners (simillar to rectangale roundness) of custom shapes made with pen tool. But first I would like to know if there any way at all to access and change the path data via script or expression? I was checking docs and haven't found much 

This topic has been closed for replies.
Correct answer Dan Ebberts

You can access path data via both scripts and expressions, although the syntax is somewhat different. With expressions, you use the path.points(), path.inTangents(), and path.outTangents() methods. With scripting you access a shape object and use the shape.vertices, shape.inTangents and shape.outTangents attributes. Everything you need is in the AE Help or AE Scripting Guide.

1 reply

Dan Ebberts
Community Expert
Dan EbbertsCommunity ExpertCorrect answer
Community Expert
March 8, 2023

You can access path data via both scripts and expressions, although the syntax is somewhat different. With expressions, you use the path.points(), path.inTangents(), and path.outTangents() methods. With scripting you access a shape object and use the shape.vertices, shape.inTangents and shape.outTangents attributes. Everything you need is in the AE Help or AE Scripting Guide.