Skip to content

Illustrator (Desktop) SDK/Scripting Issues

119 results found

  1. 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)
  2. Unicode support for annotation text

    AIAnnotationDrawerSuite::DrawText() takes an ai::UnicodeString, but when you pass it non-Latin1 characters, you just get the box character. I suspect that if I passed Japanese to the Japanese version of Illustrator, the characters would display correctly, but it'd useful if you could do it regardless of Illustrator version.

    We are just starting to add translations of our plugin and currently AI tool tooltips & annotation text have to be kept as Latin1 or we run into trouble.

    13 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)
  3. kATEDocumentResourceChangedNotifier not sent when character/paragraph styles are changed

    According to the documentation for kATEDocumentResourceChangedNotifier, it is supposed to be "Sent when ATE document resources, such as named style, have changed."

    I have never found this to be true, in any version since the ATE was added. This has always been a serious pain point, because we build small previews of text styles and we have to rebuild them every time we open a UI that shows them, because we have no way of knowing if they have changed (or if they even still exist, or any have been added!).

    Since it's never been sent before, there can't be…

    8 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)
  4. Add Javascript API for swatches functionalities

    There are many missing feature that we can not handle using javascript scripting, also may be apple script.

    1. Merge swatches via script
    2. Suppress merge swatch conflict dialog via script or do it in the background by default value.
    3 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. addDocumentNoUI methods argument not selectable.

    1.Your version of Adobe Illustrator
    Illustrator ver.21 or later.

    2.The steps you were taking when you experienced the issues
    When we run addDocumentNoUI method, we can set startupPreset.
    However, It always sets "Web" preset.

    3.Your expected result
    When we select "Art & Illustration" document open with appropriate preset.

    4.Your actual result
    All the time we got a document made with "Web" preset.

    Here is a sample code of NoUI scripting.

    var dc = app.documents.addDocumentNoUI("Art & Illustration");
    //add some objects
    dc.saveNoUI(File("~/Desktop/testNoUI.ai"));
    dc.closeNoUI();

    After run it and open in Illustrator, we will find it used Web preset.
    We want to choose appropriate…

    9 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)

    var dc = app.documents.addDocumentWithDialogOption(“Art & Illustration”, false);
    //add some objects
    dc.saveAs(File(”~/Desktop/testNoUI.ai“));
    dc.close(SaveOptions.DONOTSAVECHANGES);

    Above script works for creating, saving and close the document without UI. The document preset is localized, if you are using locale other than english, you should pass the localized name of preset to addDocumentWithDialogOption method.

  6. 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!

    5 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  ·  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)
  7. Allow scripts (AppleScript, Javascript) to retrieve a full list of all selected layers

    Currently, you can ask Illustrator what layer is selected, but if a user has more than one layer selected, it won't give a list or array of all selected layers. It will still just give you one layer. So many scripts I write have to do with changing properties of multiple layers like batch renaming or batch recolouring. The workaround is to ask the end user to lock all layers they don't want to be affected. It would be much more natural for them to just select the layers they want to be affected.

    27 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. 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

    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)
  9. 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 ?

    4 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)
  10. [BUG] Extend script via Javascript document.importFile broken between CC2017 and CC2018

    Currently this is producing an error in CC2018 Illustrator on Mac

    var newFile = new File('/tmp/sample.rtf');
    app.activeDocument.importFile(newFile, false);

    Works correctly in CC2017.

    5 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  ·  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)
  11. 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

    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)
  12. Scripting Bug: importFile() no longer works in CC2018

    importFile() worked fine in CC2017, now in CC2018 it throws an "Illegal Argument" error.

    here's a small JavaScript to test. Open any document or create a blank file before running the script

    var f = File('c:/temp/Example File.pdf'); // to test, add a path to a valid file in your system

    var idoc = app.activeDocument; // have any document open

    idoc.importFile(f, false);

    5 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. 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

    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)
  14. 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:

    1. Add the following include below the SDKDef.h include in VersionInfo.rc

    include "verrsrc.h"

    1. 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

    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)
  15. 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)
  16. [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)
  17. [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

    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)
  18. 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

    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. 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

    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)
1 2 3 4 6 Next →
  • Don't see your idea?

Illustrator (Desktop) SDK/Scripting Issues

Categories

Feedback and Knowledge Base