Illustrator (Desktop) SDK/Scripting Issues
97 results found
-
Executing Extendscript/Javascript from the C++ API As far as I know there is no possible way to execute an Extendscript via the C++ API.
In InDesign we can do so by providing the script as a string and fetching simple output results.Our customers can customize our Plugins by providing their own script in our custom scripting language. Unfortunately our language does not cover all use cases and needs to be constantly expanded. With support for Extendscript/Javascript execution from the C++ API we could circumvent the problem and give the users a lot of flexibility and power.
4 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 -
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!
4 votes -
Bug: Before and After Export Notifiers Do Not Fire When Export As is Used From the Menu The below menu command notifiers do not fire when the export option is used:
kAIExportCommandPreNotifierStr "AI Command Notifier: Before Export"
kAIExportCommandPostNotifierStr "AI Command Notifier: After Export"Other menu notifiers do fire, such as "AI Command Notifier: Before Save As" and "AI Command Notifier: After Save As"
4 votes -
Rotate / scale sensitivity In the recent version of Illustrator, I have severe problems with the simple task of rotating and scaling objects. The distanse I need to hold my selector/cursor from the object, relative to the indication I need to know weather I'm about to rotate, scale, or even add radius to a corner is far to sensitive for me. And with a "mouse-hand"/ or pen hand (not sure if thats the right term in English) it get quite annoying. I always have to zoom in quite a lot to do this simple and frequent operation. Not sure if anyone else have this…
4 votes -
Updating annotation drawings as bezier control points are dragged Hello,
I'm working on an Illustrator plugin to help visualise bezier curve continuity. Screenshot: https://i.imgur.com/rxgqDJL.png
I wanted to ask if there's a way to update artwork annotations as the user drags a bezier path control point? Currently my plugin only updates the annotation drawing once you let go.
I assume this is possible because Illustrator seems to be able to do it for showing useful information such as alignment as you edit curves.
Some extra technical details in case it helps... :)
I started this project using the Annotator example project from the sdk as a starter.
In my plugin…
4 votes -
Variable font support in scripts There doesn't seem to be any way to use variable fonts in scripts. There is an undocumented property TextFont.axisVector, but it is read-only. So there is no way to adjust the axes of a variable font via script, even though Illustrator has supported variable fonts for many years now.
Relevant thread:
https://community.adobe.com/t5/illustrator-discussions/scripting-variable-fonts-in-illustrator/td-p/98345143 votes -
Please update "Planet X" in backend to "Live Paint" Actions read from API are named "Planet X".
In AI menu, they are "Live Paint"Additionally, there is one typo: "Marge Planet X" = "Merge Live Paint"
When Loupedeck reads the actions from API, they appear with outdated names in Loupedeck UI.
3 votes -
Adjusting one gradient causes changes to unrelated gradients on same document adjusting one gradient causes changes to unrelated gradients on same document.
3 votes -
Update the VSCode ExtendScript Debugger This is an essential tool.
Too many issues to mention here - and that's just on a PC. It doesn't work at all on ARMx64
The community needs this kept up to date!
3 votes -
an Illustrator error occurred: 1346458189 ('PARM') I get this error too often on an irregular basis.
Do something.
At the very least, please return the correct cause of the error as to what caused the error.createOutline (),
Move () for each objectEtc., this error of the title is occurring too much during loop processing with for or while.
I've come to hate Illustrator anymore.
Please give the correct information to this error.
I want to deal with it.This error has been the same since at least Illustrator CC 2014.
I thought that the frequency of errors occurred in Illustrator CC 2017 was considerably…3 votes -
Illustrator 25.2 missing scriptability Info.plist entry Illustrator's Info.plist file no longer has an entry for
NSAppleScriptEnabled
. That means normal attempts to open its scripting dictionary fail.3 votes -
Commands from Special characters / Whitespace section gives an error A simple script:
app.executeMenuCommand('~copyright')
gives an error 1200: 1346458189 ('PARM')3 votes -
Fails to retrieve file creation date | AI 2020, MacOS Catalina This issue appears only on MacOS Catalina.
Steps to reproduce:
File(file_path).created.getTime()
3 votes -
Allow C++ SDK to load swatch library (ase) from filepath Currently, with ExtendScript, we're able to load a swatch library from a filepath and show its panel. In the C++ SDK, we're only able to open a library with the OpenNthLibrary function from the SwatchLibrariesSuite.
It would be nice, similar to ExtendScript, to be able to load an .ase from a filepath and open the panel.
3 votes -
Using method duplicate() on a group of threaded text frame items will lose threading Hi together,
if we duplicate a group of threaded text frame items to a different Illustrator document the story's threaded text frame items will not be threaded anymore in the target document.If you duplicate the group in the same document the threaded text frame items remain threaded.
All details here at Adobe Illustrator Scripting Forum:
[BUG] copying threaded text-frames.
Silly-V Mar 22, 2019 9:30 AM
https://forums.adobe.com/message/10991060#10991060One has to rethread the text frame items in the target document.
That should not be necessary.No issue if we copy and paste grouped and threaded text frame items using the menu…
3 votes -
Last frame in a story: textFrameItem.nextFrame is not null Hi together,
the value of nextFrame of the last textFrameItem in a story should always be null. Otherwise you could thread the outport of a text frame item with the inport of the same text frame item.And indeed that's the case!
See details in this thread at the Adobe Illustrator Scripting Forum:
- Re: [BUG] copying threaded text-frames. Laubender Mar 30, 2019 7:42 PM (in response to Laubender) https://forums.adobe.com/message/11004207#11004207
Since this IS POSSIBLE it creates a rather strange text composition in the affected story. So my suggestion: nextFrame of the last threaded text frame item in a story should always…
3 votes -
Export jpg using script to specific dpi Export jpeg using script to specific dpi.
3 votes -
[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
- Don't see your idea?