Copy link to clipboard
Copied
I wish to clean my illustrator script by splitting my script into smaller .js files but I seem to get this error when I want to import functions from other files. Any ideas? Does ai not allow this? Thanks!
are your scripts part of an Extension?
for regular jsx scripts, use #include at the top of your main script, import is not used in the illustrator scripting context
Copy link to clipboard
Copied
are your scripts part of an Extension?
for regular jsx scripts, use #include at the top of your main script, import is not used in the illustrator scripting context
Copy link to clipboard
Copied
Yes I've tried #include and it works. TY
Copy link to clipboard
Copied
i am a novice and i don't understand it well。can i trouble to put a case?thanks!
Copy link to clipboard
Copied
Find more inspiration, events, and resources on the new Adobe Community
Explore Now