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

Operate Illustrator in Python

Contributor ,
Apr 21, 2025 Apr 21, 2025

I am a Python novice and I want to write a program in Python to operate Adobe Illustrator. How can I call the Illustrator API (including its objects, properties, and methods) ? It would be best to provide specific examples, such as using a Python program to create a TextFrame and assign it a value of "Python" in yellow. Thank you.

TOPICS
How-to , Scripting , SDK
262
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 , Apr 21, 2025 Apr 21, 2025

You can start from the following Github repo

https://github.com/lohriialo/illustrator-scripting-python

-Manan

Translate
Adobe
Community Expert ,
Apr 21, 2025 Apr 21, 2025

You can start from the following Github repo

https://github.com/lohriialo/illustrator-scripting-python

-Manan

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
Contributor ,
Apr 23, 2025 Apr 23, 2025

Hi @Manan Joshi  That's fine. Thank you! I will study it carefully.

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
Community Expert ,
Apr 22, 2025 Apr 22, 2025

Hi @Raymond ZJH since you mention your are a python novice, and on the off-chance you are better at Javascript, another option would be to use ExtendScript, which is basically Javascript from circa 1999. It might be simpler to set up because Illustrator has a native ExtendScript scripting API.

- Mark

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
Contributor ,
Apr 23, 2025 Apr 23, 2025

Hi @m1b  Thank you for your suggestion! Perhaps you are right. I used to frequently use VBScript to operate Illustrator in VBA because I needed to use it in conjunction with Office Excel. However, due to the limitations of VBA, I wanted to switch to a different development environment. The reason why I chose PYTHON is because of its ecosystem, and its future extension applications may be more extensive. Also, for some reason, I always feel that Javascript is difficult to learn. Perhaps it's because there are relatively few reference materials for learning it, as I haven't gone through a systematic programming education process and don't have a professional background.

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
Community Expert ,
Apr 26, 2025 Apr 26, 2025
LATEST

Yep, I get what you mean @Raymond ZJH but here is another consideration: 99% of the example scripts you find will be in ExtendScript, and they are by far the most accessible way to learn specific details (as opposed to a beginner level ES3 course, which would be a good first step).

- Mark

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