Illustrator (Desktop) SDK/Scripting Issues
97 results found
-
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 -
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 ?3 votes -
Javascript erroneously reports stroke color in paragraphStyles.characterAttributes if it has been changed from a color to noColor AI 21.0.0 2017 Release
---------------------------------------- to reproduce
New Document (defaults: print, letter)
T for text tool, click in document, type "test text"
cmd-return to exit
in Color palette click anywhere in color bar to change text color
in Paragraph Styles palette, click the new style icon to create "Paragraph Style 1"
---------------------------------------- 1st run
run script "bugreport"
results:
fillColor: [CMYKColor]
strokeColor: [NoColor]---------------------------------------- 2nd run
select the "test text" text
press "X" to change the color palette from fill to stroke
click anywhere in the color bar to give the text a colored stroke
in Paragraph Styles palette, select "Redefine…
3 votes -
More notifiers for live effects Ai provides a live effect notifier that triggers when an object is scaled, but not when it’s moved. Same problem with rotating — the absence of these does not allow to recalculate effects properly, like one when an object with a shadow is rotated, and a user wants to rotate the shadow with the object (there is a quite popular request about this one already — https://illustrator.uservoice.com/forums/333657-illustrator-desktop-feature-requests/suggestions/32468149-effects-do-not-rotate-drop-shadow-or-scale-e-g)
2 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 -
Erroneous fillColor type one shapes with Freeform Gradients Trying to get the fillColor properties of shapes that feature Freeform Gradients
- Using app.activeDocument.selection[0].fillColor
- Returns a [GrayColor] instead of what we would expect to be a [GradientColor] of GradientType.FREEFORM
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 -
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 …
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 -
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?
1 vote -
AppleScript can't get character properties (ver26.4.1, ver26.5) tell character 1
properties
endver26.3.1 get properties
but, ver26.4.1, ver26.5 cant't get properties1 vote -
variables.removeAll(); does not work When I execute variables.removeAll();. error occurred: 1346458189 ('PARM').
On the other hand, dataSets.removeAll() works.1 vote -
ExtendScript Debugger 2.0.3 for VSCode fails on "doScript" method When a script containing "doScript" method is run from VSCode to AI 2022 using any version of ExtendScript Debugger 2.x it locks up Ai 2022 requiring a force quit. VSCode must also be reloaded before any debugging can continue.
Rolling ExtendScript Debugger back to v1.1.2 eliminates the failure at the expense of the more advanced features of v2.x.
1 vote -
exportForScreens() file output naming issues Natively File > Export > Export for Screens has an option to add a suffix to the output file name, but in scripting the last parameter adds a prefix to the output file name not a suffix as it should to match the desk top user options.
exportForScreens(path, ExportForScreensType, ExportForScreensOptions, ExportForScreensItemToExport, "This adds a prefix NOT a suffix");
1 vote -
ファイル名に#が付いた配置画像のファイルパスをapplescriptで得ようとすると問題あり 例えばファイル名「ABC#123.psd」とした画像を配置し、
選択したうえでtell application "Adobe Illustrator"
get file path of selection
end tellを実行するとリザルトが
file "○○○:○○○:ABC"
となり、#とそれ以降が無くなっている。
正常ならば
file "○○○:○○○:ABC#123.psd"
となるはず。ファイル名に限らず、パス内に#が入っているとダメ。
cs6、cc2018、cc2019では問題ない。
cc2020(24.1.3)(24.2.1)(24.3.0)cc2021(25.2.3)パブリックベータは問題あり。macmini2018 macOS 10.14.6
imac2020 macOS 11.2.31 vote
- Don't see your idea?