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.
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
or
https://ai-scripting.docsforadobe.dev/
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
or
https://ai-scripting.docsforadobe.dev/
Copy link to clipboard
Copied
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.
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
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