Skip to main content
Participating Frequently
October 5, 2022
Answered

Illustrator object structure

  • October 5, 2022
  • 2 replies
  • 890 views

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.

 

This topic has been closed for replies.
Correct answer femkeblanco

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/

 

2 replies

m1b
Community Expert
Community Expert
October 5, 2022

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

KalaiaAuthor
Participating Frequently
October 6, 2022

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

femkeblanco
femkeblancoCorrect answer
Legend
October 5, 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/

 

KalaiaAuthor
Participating Frequently
October 6, 2022

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.