Illustrator (Desktop) SDK/Scripting Issues
129 results found
-
[BUG] Error during evaluation of conditional (ternary) operator
The script in the Illustrator produces an error during evaluation of a conditional expression that includes a nested conditional expression without parenthesis.
This breaks JavaScript optimization tools e.g. Google Closure Compiler.
Scenario:
alert(true ? true ? 1 : 2 : 3);Expected:
Standard dialog with message: "1".Actual:
Dialog with message "Error 25: Expected: :."Workaround:
alert(true ? (true ? 1 : 2) : 3);System info:
Illustrator Version: 23.0.1
OS: OS X
Version: 10.14
System Architecture: x643 votes -
Adjust dashes to corner and path ends via scripting
I have dashed lines in my drawing and want to align dashes to corners and path ends. No problem in the Illustrator stroke menu. There are two buttons with dashed lines on it. But there is no script command to do this.
Please add script command for adjust dashes.
6 votes -
CC2019 CoordinatePrecision2 in Preferences
When doing operations on small vector objects I found that the precision was weird.
After checking the Preferences files I found that the key
plugin/SVGFormat/CoordinatePrecision was set to 3 (like in CC2018 were it works fine)But also found a new key:
plugin/SVGFormat/CoordinatePrecision2 set to 1!After closing Illustrator and updating that value to 3 it works again.
I didn't see any mention of that change in any docs.
Is "CoordinatePrecision2" the new value from CC2019? and "CoordinatePrecision" deprecated?
Thanks!
2 votes -
import graphic styles from file or library
with javascript, there is no way to import graphic styles from libraries or files. there is a way to open ai documents as graphic style libraries but then there is no script access to that library.
currently what i have to do is have an ai file with objects with graphic styles assign to them. with my script i open that file, select the objects, copy them, close the file, switch documents, paste objects, delete objects.
this can take a while and it is a very ugly solution. ideally there should be something as simple as importGraphicStylesFromFile(File)
or at least …
4 votes -
Remove Security from Scripting Guides
Why are Scripting Guides/References password protected now?
many times we need to copy/paste sample scripts to help new users in the forums.
Please remove protection.
thanks
Carlos11 votes -
Create and edit Graphic Styles with scripts
Hello,
I develop a plugin where I need to create/update/modify graphic style and/or Aspect for graphic item.
I try many solutions, search on the web but for the moment it's not possible.Could you please add support for creating/editing/deleting graphic style and aspect ?
It's very important for me ! And I think many developpers can be interesting with this features.Thanks a lot !
Loïc16 votes -
C#/ .NET api
I'd really value the ability to extend illustrator with c#.
I know adobe is cross platform, but surely theres enough of a windows user base to make this beneficial.
10 votes -
Add Javascript API for swatches functionalities
There are many missing feature that we can not handle using javascript scripting, also may be apple script.
- Merge swatches via script
- Suppress merge swatch conflict dialog via script or do it in the background by default value.
3 votes -
kAINamedStyleListChangedNotifier is not emitted when a Graphic Style is updated
If you hold ALT and drag some art into a Graphic Style, it updates, but the notifier is not sent. This has been happening since at least the original CC. It used to work before that.
9 votes -
kATEDocumentResourceChangedNotifier not sent when character/paragraph styles are changed
According to the documentation for kATEDocumentResourceChangedNotifier, it is supposed to be "Sent when ATE document resources, such as named style, have changed."
I have never found this to be true, in any version since the ATE was added. This has always been a serious pain point, because we build small previews of text styles and we have to rebuild them every time we open a UI that shows them, because we have no way of knowing if they have changed (or if they even still exist, or any have been added!).
Since it's never been sent before, there can't be…
8 votes -
Unicode support for tool names & toolips
The AIAddToolData struct is still using char* for the title & tooltip members. I know it does some kind of localization, but that's really archaic when the rest of the SDK uses ai::unicode.
4 votes -
Update Samples to not require MFC
The Samples included with the SDK cannot currently be compiled on Windows unless MFC was installed as part of the Visual Studio installation procedure.
Making the Samples requires two small things:
- Add the following include below the SDKDef.h include in VersionInfo.rc
include "verrsrc.h"
- Change the "afxres.h" include in the .rc of all plugins to instead include "winuser.h"
Doing so will make MFC optional, and not required; ultimately, including 'afxres.h' is including the two headers outlined above so it's just introducing an unnecessary middle man who can be safely bypassed.
4 votes -
Unicode support for annotation text
AIAnnotationDrawerSuite::DrawText() takes an ai::UnicodeString, but when you pass it non-Latin1 characters, you just get the box character. I suspect that if I passed Japanese to the Japanese version of Illustrator, the characters would display correctly, but it'd useful if you could do it regardless of Illustrator version.
We are just starting to add translations of our plugin and currently AI tool tooltips & annotation text have to be kept as Latin1 or we run into trouble.
13 votes -
Access to underlying Illustrator object handles via scripting
The biggested pain point when implementing scripting support for plugins is that if you want to add objects that interact with built-in Illustrator script objects (LiveObjects) like Layers, Documents or PageItems. While it's possible to correctly parse whether you're being passed the correct scripting object (e.g. a Layer and not something else) you can't actually determine the handle for the specified object; that lives inside the ScriptingSupport.aip and has no public API.
Perhaps a small suite could be added that provides methods like this:
AIAPI AIErr (GetDocumenttHandle) (long hObject, AIDocumentHandle& outHandle);
AIAPI AIErr (GetLayerHandle) (long hObject, AILayerHandle& outHandle);…15 votes -
Align/Distribute support for AppleScript
It would be great if we could have support for Align/Distribute in AppleScript. I believe Illustrator's UI functionality in this area is the same as InDesign, so using the exact same terminology would be excellent.
A little nit—AppleScript is one word, not two, so that needs to be changed in the "Category" choices in this forum. Thanks!
5 votes -
accented charaters bug?
Hi
(Illustrator 2015-3, mac)
I try to put this text in a frame.
&éèçà€ù~©®πRUNNING
Before insertAfter, the text ( as a char *) is correct
After the insertAfter, it is also correct ( via getContents).
But garbage is displayed as seen in the screen capture.
Dropbox - Capture d'écran 2018-04-25 05.39.42.png
I'm stuck.
Thanks for any help.
He re is some code I use.
// get contents
TextFrameRef textFrameRef = NULL;
AIErr result = sAITextFrame->GetATETextFrame(bloc, &textFrameRef);
ATE::ITextFrame textFrame(textFrameRef);
ATE::ITextRange textRange = textFrame.GetTextRange();
// textRange.Select();
//debug
int longueur = textRange.GetContents(s, 255);
// set contents to contenu
// Set the contents of…
2 votes -
Edit Appearances with Scripting
Currently it appears only 1 appearance fill is available via scripting, and Illustrator spits out the value of whichever one is selected. What I'd like to be able to do, is loop through the appearances of layers for example, record those attributes(including layer opacity and blending modes) and apply those to fills within a single shape. As there are many more stacked attributes within appearances, it may not be this simple, but it'd be much appreciated.
24 votes -
Applescript export PNG in 300 DPI
Using applescript, we can't export artwork in 300 DPI in format PNG.
in the last version, the export PSD is not as beautiful as the export menu.
Why ?4 votes -
[Feature] Ability to embed HTTPS sites into extension HTML via iFrames
Currently it is not possible to embed HTTPS sites into extension HTML via iFrames because it results in a mixed-mode security violation. It would be nice to have the CEF used in the extension ignore this error when using extension html installed on the local system.
I've attached a simple file demoing the problem.
2 votes -
[BUG] Unable to debug Extensions on Windows with CC2018
Currently when attaching the Chrome debugger under windows this causes the application to refresh the extension panel, and to disconnect from the debugger.
2 votes
- Don't see your idea?