Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Access vertices or shapes made by pen tool via extendscript

Participant ,
Mar 08, 2023 Mar 08, 2023

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 

TOPICS
Expressions , Scripting
470
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Mar 08, 2023 Mar 08, 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.

Translate
Community Expert ,
Mar 08, 2023 Mar 08, 2023
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines