Illustrator (Desktop) SDK/Scripting Issues
121 results found
-
Add ability to retrieve text on path options via C++ API
Currently, it is not clear or not possible how we can get the current text on the corve element's baseline and effect settings.
Make them accessible via some API.1 vote -
24.3 causes my extension to crash illustrator
Hi,
I've noticed that my extension Khronos Maker have started to crash Illustrator after updating to 24.3. I'm not sure what's causing it and hope to get some help to identify where the problem is.
In terms of code, what's causing the crash is the sequence of following:
myDocument.textFrames.add();
myLayer.position = [coordinates.x, coordinates.y];
myLayer.contents = graphic;app.undo()
//and then running the code above again after the undo causes a crash
myDocument.textFrames.add();
myLayer.position = [coordinates.x, coordinates.y];
myLayer.contents = graphic;This is strange since hitting cntrl + Z (windows) instead of the script, no crash. And in version 24.2.3 everything works fine.…
1 vote -
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 -
Commands from Special characters / Whitespace section gives an error
A simple script:
app.executeMenuCommand('~copyright')
gives an error 1200: 1346458189 ('PARM')3 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 -
Access all variables necessary for each item's appearance
Lots of obvious variables are missing from each type of item. I've not tested exhaustively so I've no doubt there'll be other examples, but here are a few I've recently run up against;
— fillColor and strokeColor are entirely missing from both text and group items.
— where a path has multiple fills or strokes, you can't select which one is referenced, and the rest are inaccessible.
— arrow heads
— effects (eg. I'd like to be able to access properties of a 3D effect)
— graphic styles (reference, rename, create, remove, edit)14 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
4 votes -
selection geometricBounds and true geometricBounds for clipped objects
Allow for access to the selection geometricBounds as a whole. Also bounds for the clipped area only (ignore hidden areas).
In Illustrator, the Transform window displays the position, width and height for all objects selected and it does not display clipped areas. when you size an object by entering a dimension, you don't have to worry about clipped areas. in scripting you do.
The geometricBounds, visibleBounds, controlBounds, height and width properties give you the size of clipped objects. for a couple of items you can check if each is clipped and if it is, you can then retrieve the first…
11 votes -
Bring back the old scripting forums
Bring back the old scripting forums, the new "Community" forums are a joke. It's totally unintuitive and impossible to find anything scripting related as its all thrown in with general user stuff. Looks like all the money has been spent on "Badges" when all we want is easy to find help. Looks like all the historical data has mostly been removed as well so that's bad if you are looking for something someone may have answered in the past. Big step backwards...
11 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 -
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 -
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.
6 votes -
Delete Anchor Point is not working
On the latest update of AI (2020 version) delete anchor point is not working.
2 votes -
CEP: Waaaay more events from AI to CEP Panels (e.g. selection changed)
In a panel I would like to receive events from the host app - in this case AI.
Please provide events for
- selection changed
- layers added/changed
- items added (items of any kind)
- items deleted
- etcCurrent workarounds: polling (setTimer) for changes...thats far from ideal.
The current situation is more than sad (not regarding the lack of documentation).
16 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 -
access opacity of TextRange
There is no way to access the opacity of a textRange. This TextFrame has 100% opacity, but it contains two textRanges, one of which is at 50% opacity. I don't believe that there is a way to make everything 100% opaque from javascript.
5 votes -
Concerns about the future of CEP and UXP
I've been reading through the new information about UXP and the announcement that it will be replacing CEP.
If this happens it will likely mean the end of our current CEP extension, since the support provided in UXP does not cover our use case. To be specific we have problems with the following areas:
1) Most critical UXP is "not a browser" and as such will only support a subset of HTML. Our extension relies on being able to run another web application within the browser control supplied by CEP, in an iframe window. While there is currently no list…
5 votes -
Listbox checkmarks not displaying in Illustrator 2020
Checkmarks are no longer being displayed on listbox items in Illustrator 2020. Please see the attached image showing the listbox in Illustrator CC 2019 and Illustrator 2020. This is on a Windows PC.
1 vote -
Add documentation for exporting Windows Metafile (WMF)
There's currently a hidden parameter 'parm' that is required to export as WMF in kAIExportDocumentAction. Please document what this is for and what value is required.
1 vote
- Don't see your idea?