Skip to content

Illustrator (Desktop) SDK/Scripting Issues

112 results found

  1. When art is renamed, no notifier is sent

    In CC2019, at least two notifiers should result from renaming art: kAIArtPropertiesChangedNotifier & kAIArtObjectsChangedNotifier, but neither is sent.

    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  ·  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)
  2. CEP: Unique identifier for items and layers

    Please provide unique identifiers for all page items and layers via script.

    Right now it is not possible to save IDs of page items/layers in a variable or array and retrieve them at a later point in the script.

    At first I could not believe it that there are no IDs. This is total basic and should be a no-brainer and default.
    Thanks!

    P.S. Current workaround: set custom tag on items. This works only as long as the user is not duplicating an items. Than you have two items with the same tag and it is not unique anymore.
    Workaround…

    6 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)
  3. 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
    - etc

    Current workarounds: polling (setTimer) for changes...thats far from ideal.

    The current situation is more than sad (not regarding the lack of documentation).

    16 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

    2 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)
  4. [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: x64

    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. Adjust dashes to corner and path ends via scripting

    I have dashed lines in my drawing and want to align dashes to corners and path ends. No problem in the Illustrator stroke menu. There are two buttons with dashed lines on it. But there is no script command to do this.

    Please add script command for adjust dashes.

    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)
  6. 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)
  7. 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 …

    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

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  8. Remove Security from Scripting Guides

    Why are Scripting Guides/References password protected now?

    many times we need to copy/paste sample scripts to help new users in the forums.

    Please remove protection.

    thanks
    Carlos

    11 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. Create and edit Graphic Styles with scripts

    Hello,

    I develop a plugin where I need to create/update/modify graphic style and/or Aspect for graphic item.
    I try many solutions, search on the web but for the moment it's not possible.

    Could you please add support for creating/editing/deleting graphic style and aspect ?
    It's very important for me ! And I think many developpers can be interesting with this features.

    Thanks a lot !
    Loïc

    15 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. C#/ .NET api

    I'd really value the ability to extend illustrator with c#.

    I know adobe is cross platform, but surely theres enough of a windows user base to make this beneficial.

    10 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)
  11. 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)
  12. kAINamedStyleListChangedNotifier is not emitted when a Graphic Style is updated

    If you hold ALT and drag some art into a Graphic Style, it updates, but the notifier is not sent. This has been happening since at least the original CC. It used to work before that.

    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

    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)
  13. 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)
  14. 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)
  15. 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)
  16. 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)
  17. Access to underlying Illustrator object handles via scripting

    The biggested pain point when implementing scripting support for plugins is that if you want to add objects that interact with built-in Illustrator script objects (LiveObjects) like Layers, Documents or PageItems. While it's possible to correctly parse whether you're being passed the correct scripting object (e.g. a Layer and not something else) you can't actually determine the handle for the specified object; that lives inside the ScriptingSupport.aip and has no public API.

    Perhaps a small suite could be added that provides methods like this:

    AIAPI AIErr (GetDocumenttHandle) (long hObject, AIDocumentHandle& outHandle);
    AIAPI AIErr (GetLayerHandle) (long hObject, AILayerHandle& outHandle);…

    15 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

    2 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)
  18. 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)
  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. Edit Appearances with Scripting

    Currently it appears only 1 appearance fill is available via scripting, and Illustrator spits out the value of whichever one is selected. What I'd like to be able to do, is loop through the appearances of layers for example, record those attributes(including layer opacity and blending modes) and apply those to fills within a single shape. As there are many more stacked attributes within appearances, it may not be this simple, but it'd be much appreciated.

    21 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)
  • Don't see your idea?

Illustrator (Desktop) SDK/Scripting Issues

Categories

Feedback and Knowledge Base