Skip to content

Illustrator (Desktop) SDK/Scripting Issues

125 results found

  1. Duplicating a group with a script does not change/update groupItems.length

    When you duplicate a group via script (check the video and screenshots) activeDocument.groupItems.length is not reflecting that. It stays the same. app.redraw() is not helping. Only when you set the new group to .selected = true you can force an update. But that slows down everything when you have a lot of groups.

    Video: https://drive.google.com/file/d/1dd0PyBRDBciNnUgnhGLV7Hf40rrG_vSb/view

    Steps to Reproduce:
    All with script!
    1. Create a group (put something in that group)
    2. Alert the activeDocument.groupItems.length (it's now 1)
    2. Duplicate the group.
    3. Alert the activeDocument.groupItems.length: it stays the same (1 instead of 2)
    Please take a look at the script…

    2 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  2. DocumentRasterResolution - How do we set HighResolution? Please give an example of how to set and how to read document resolution. Thanks

    DocumentRasterResolution - How do we set HighResolution? Please give an example of how to set and how to read document resolution. Thanks.
    Example:
    DocumentRasterResolution.HighResolution; //Does nothing So how to do? Why is this not an app.documents.add() function or method to begin with? Why is the app.document.add so limited in parameters? I would think there would be a huge parameter list but there is not.

    2 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  3. DocumentArtboardLayout under app.documents.add is broken

    var aDoc = app.documents.add(DocumentColorSpace.CMYK, 612.0, 792.0, 3, DocumentArtboardLayout.GridByCol, 40.0, 1);

    Running the above script.jsx GridByCol broken. I get two rows, should be a single column. Changed GridByCol to GridByRows and also outputs 2 rows of artboards. DocumentArtboardLayout is broken.

    2 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  4. [BUG] exportFile() changes spaces to hyphens in file name

    //how to reproduce:
    app.activeDocument.exportFile(new File("~/desktop/test test"), ExportType.GIF);

    //types affected -  ExportType.PNG24,  .PNG8,  .JPEG, .GIF
    //types exporting with no unwanted hyphen - .TIFF, .SVG
    

    //persists on win and mac

    2 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  5. 2 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  6. [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

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  C++ SDK  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  7. 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

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  8. 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

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  9. .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

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  10. 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

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  11. 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 ==> none

    2 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  12. 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 one

    2 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  13. 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

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  AppleScript  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  14. Delete Anchor Point is not working

    On the latest update of AI (2020 version) delete anchor point is not working.

    2 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  CEP  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  15. 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

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  C++ SDK  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  16. 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

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  C++ SDK  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  17. 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

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  AppleScript  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  18. 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

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  19. 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

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  C++ SDK  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  20. [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

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  CEP  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  • Don't see your idea?

Illustrator (Desktop) SDK/Scripting Issues

Categories

Feedback and Knowledge Base