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 is the only diagram of the object model that I am aware of. This is just the top level of the hierarchy.
For the docs (if you were not aware), see either
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.
An additional resource is the ExtendScript Debugger plugin for VSCode. Are you using it already? If so, just put a breakpoint in your code:
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.
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).