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

Illustrator object structure

Community Beginner ,
Oct 05, 2022 Oct 05, 2022

Copy link to clipboard

Copied

Hello,

 

is there some documentation/diagram/picture of all the Illustrator object models somewhere? I want to create separate diagrams for each model hierarchy such as text, images, etc.

 

P.S. I've looked at this question but the links given in reply are expired or no longer exist.

 

TOPICS
Scripting , Type

Views

104

Likes

Translate

Translate

Report

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

Advisor , Oct 05, 2022 Oct 05, 2022

This is the only diagram of the object model that I am aware of.  This is just the top level of the hierarchy. 

https://ai-scripting.docsforadobe.dev/_images/objectmodel.png 

 

For the docs (if you were not aware), see either

https://assets.adobe.com/public/aa41975d-3a2b-4ba9-6658-34e88a029a63/Illustrator%20Scripting%20Reference%20-%20JavaScript_v2.pdf 

or

https://ai-scripting.docsforadobe.dev/

 

Likes

Translate

Translate
Advisor ,
Oct 05, 2022 Oct 05, 2022

Copy link to clipboard

Copied

This is the only diagram of the object model that I am aware of.  This is just the top level of the hierarchy. 

https://ai-scripting.docsforadobe.dev/_images/objectmodel.png 

 

For the docs (if you were not aware), see either

https://assets.adobe.com/public/aa41975d-3a2b-4ba9-6658-34e88a029a63/Illustrator%20Scripting%20Refer... 

or

https://ai-scripting.docsforadobe.dev/

 

Likes

Translate

Translate

Report

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 Beginner ,
Oct 05, 2022 Oct 05, 2022

Copy link to clipboard

Copied

LATEST

Yes, thank you for the response. The docs really helped a lot. Also in Illustrator Scripting Guide  had almost similiar diagram of specifically text objects. 

textModel.jpeg

Likes

Translate

Translate

Report

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 ,
Oct 05, 2022 Oct 05, 2022

Copy link to clipboard

Copied

An additional resource is the ExtendScript Debugger plugin for VSCode. Are you using it already? If so, just put a breakpoint in your code:

$.bp();

and when you run your script in the debugger it will pause at that breakpoint. Then look in the "Run and Debug" panel—it displays a wealth of information. You can inspect variables, including complex objects such as "app". You can also watch particular variables or expressions and see the call stack.

 

So here's an example use case: you have assigned a textFrame to a variable "tf" but you're getting strange results with it. You can examine the "tf" variable with the debugger and you may discover it isn't a TextFrame at all but maybe a GroupItem. Or perhaps it is a TextFrame but you can look into the TextFrame object and look at its methods and properties to check you are interacting with it correctly.

 

It's handy.

- Mark

Likes

Translate

Translate

Report

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 Beginner ,
Oct 05, 2022 Oct 05, 2022

Copy link to clipboard

Copied

Hi Mark,

thank you for the response. Yes, I am using ExtendScript Debugger in VS Code. With the help of debugger I managed to create diagram specific for Text objects only.  I've also used the console to check the objects and play with them. Yes, it's very handy indeed. 

Rather, I was looking for an option in which there is a diagram with object tree (I managed to create this what I expected to find). 

 

- Kalaia

Likes

Translate

Translate

Report

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