Illustrator (Desktop) SDK/Scripting Issues
121 results found
-
2 votes
-
[SDK Feature Request] Annotator option to draw selection annotation last.
There is no option to draw the selection annotation last. Filled shapes and image annotations always block the selection annotation. See images for what i mean.
2 votes -
settings raster effects value visible main screen
I need to view somewhere in the Illustrator interface, the value set in the "raster effects settings" panel.
Is there a scripted way to implement this?
I've created actions that set this value to 72ppi / 300ppi so that I can change it when the document becomes heavy and unmanageable (thanks to using only 1 CPU CORE, thanks Adobe ❤).
The problem is that if I save the file, I will probably save it at 72ppi, but for printing the effects are poor and you have to set them to 300ppi.
So having the value always visible on the screen,…2 votes -
exportFile doesn't work with NoUI document
trying to create a "NoUI" document and export as SVG like this:
opendoc = app.documents.addDocumentNoUI();
opendoc.exportFile(file, ExportType.SVG);I get the attached error in AI
I can't think of any other way to export an SVG via script. Obviously there are scripting things that don't work with NoUI documents, but it seems like this one should. Am I doing something wrong?
2 votes -
.duplicate() does not update selection, crashing Illustrator
selection[0].duplicate()
// redraw()
alert(selection.length)when running this script in Illustrator, you will see that both the original selection plus its duplicate will be selected, but the alert will display 1. Running this script in debug shows that selection only contains one object despite .duplicate() being used. This causes a corruption(?) issue where in reality there are now two objects selected but selection only shows one to be selected unless you do redraw(). This discrepancy will cause Illustrator to crash when trying to set the selection (in specific circumstances) on another line after the .duplicate().
In other situations, whether one or…
2 votes -
placedItem name property doesn't work
Hello,
I'm trying to get placedItem name, but it is empty
//Get active document
var activeDocument = app.activeDocument;//Get all links (or placed items)
for (var i = 0; i < activeDocument.placedItems.length; i++) {
var imageName = activeDocument.placedItems[i].name;
alert("imageName = " + imageName);
}activeDocument.placedItems[i].name returns empty string
2 votes -
Unable to create file or folder object in Illustrator CC2020
I tried to create a file or folder object with a slash (colon) in its name in Illustrator CC2020, but I couldn't.
Also, I was not able to get the file object from PlacedItem.
The same thing happens with AppleScript.In Photoshop CC2020 and InDesign CC2020,I was able to create.
NG Case(JSX)
[File location] desktop > 2020/01 > 01/01Image01.jpg ==> [Full path] /Users/***/desktop/2020:01/01:01Image.jpg
var fObj = File('/Users/***/desktop/2020:01/01:01_Image.jpg'); ==> invalid object
fObj.exists ==> false
fObj.name ==> none2 votes -
retrieve transformation matrix of a symbol instance
there seems to be no way to retrieve a symbol instance's transformation matrix (neither javascript nor SDK).
It is only possible to compare the bounding box to the expected one2 votes -
Unable to get AppleScript that worked in AI 2019 to work in AI 2020.
We have an export in AppleScript we run for our AI 2019 graphics, but when we run it in 2020, we get an error that the file we're working in cannot be found, even though the path is correct. I can delete everything but one line (doesn't matter which line) in the script and I still get the error. Is there a basic trick tog et AppleScript that work in 2019 to work in 2020?
2 votes -
Delete Anchor Point is not working
On the latest update of AI (2020 version) delete anchor point is not working.
2 votes -
Expose 'Export Selection as' functionality
Without this functionality in the SDK, we have to copy the selection to a new document, export, and close the temporary document. Would it be possible to expose the export selection functionality to avoid these steps?
2 votes -
Add 'Convert to Shape' to the menu command notifier list
Please add the menu option: Object->Shape->Convert to Shape to the menu command notifiers list. (I've noticed other menu commands that also need to be added, but I only care about this one).
I'm using Illustrator CC v.23.0.3 on Windows 10 Pro 64-bit.
2 votes -
Wish Applescript could create more extensive dialog boxes in Illustrator.
It would be great to be able to create dialogs with radio buttons, check boxes etc., as can currently be created with Applescript in InDesign.
2 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 -
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 -
[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 -
Can you provide a script that will take selected elements and groups and place them on their own layers?
Can you provide a script that will take selected elements and groups and place them on their own layers?
2 votes -
AIArtStyleParser->CreateNewStyle not working in Illustrator 28.7 with SDK Build 130 and 709
AIArtStyleParser->CreateNewStyle return 0 (no error) but also the pointer to the new AIArtStyleHandle is invalid.
Also AIArtStyleParser->NewPaintFieldStroke doesn't work.It worked in previous Illustrator Beta releases with SDK Build 130 (April 2024)
1 vote -
1 vote
- Don't see your idea?