Skip to content

Illustrator (Desktop) SDK/Scripting Issues

120 results found

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

    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

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  2. Control the angle, length of gradients and other

    ExtendScript does not allow you to control the length, angle, or other parameters of gradients. These are all read-only attributes. Script authors can only work with color stops.

    For example, to rotate a gradient, we have to use the rotate() method, which has another problem. The angle of such a gradient is not copied to another object with the Eyedropper Tool: https://medium.com/@aiscripts/gradient-rotation-bug-24d7a6f6038f

    The fillColor assignment commands (selection[1].fillColor = selection[0].fillColor) carry over the base gradient, losing other properties. This reduces the ability to automate gradients via ExtendScript.

    Also ignores other Uservoices:
    1) https://illustrator.uservoice.com/forums/908050-illustrator-desktop-sdk-scripting-issues/suggestions/44461230-adjusting-one-gradient-causes-changes-to-unrelated
    2) https://illustrator.uservoice.com/forums/908050-illustrator-desktop-sdk-scripting-issues/suggestions/40296880-erroneous-fillcolor-type-one-shapes-with-freeform
    3) https://illustrator.uservoice.com/forums/333657-illustrator-desktop-feature-requests/suggestions/38435974-gradient-swatch-includes-angle-and-position-pleas

    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)
  3. Wrong short-discription in omv.xml

    macOS10.14.7 / IllustratorCC 26.3.1

    In the following omv file, the shortdesc(short description) of each property of the "TextAntialias" class in lines 833 to 865 is identical to the one for the previous "TextType" class.
    (以下のomvファイル、833行目〜865行目の「TextAntialias」クラスの各プロパティのショートディスクリプションが一つ前のTextTypeのものと同一です。)

    /Library/Application Support/Adobe/Scripting Dictionaries CC/Illustrator 2022/omv.xml

    ...
    <classdef name="TextAntialias" enumeration="true">
    <shortdesc>The type of text antialiasing.</shortdesc>
    <elements type="class">
    <property name="NONE" rwaccess="readonly">
    <shortdesc>Text from a point.</shortdesc>
    <datatype>
    <type>int</type>
    <value>1</value>
    </datatype>
    </property>
    <property name="SHARP" rwaccess="readonly">
    <shortdesc>Text within an area.</shortdesc>
    <datatype>
    <type>int</type>
    <value>2</value>
    </datatype>
    </property>
    <property name="CRISP" rwaccess="readonly">
    <shortdesc>Text on a path.</shortdesc>
    <datatype>
    <type>int</type>
    <value>3</value>
    </datatype>
    </property>
    <property name="STRONG" rwaccess="readonly">
    <shortdesc>Text on a path.</shortdesc>
    <datatype>
    <type>int</type>
    <value>4</value>
    </datatype>
    </property>
    </elements>…

    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)
  4. firstLineIndent can’t be set to zero

    Create a text object, type some text, keep it selected and run the script:

    activeDocument.textFrames[0].paragraphs[0].paragraphAttributes.firstLineIndent = 20;
    alert(activeDocument.textFrames[0].paragraphs[0].paragraphAttributes.firstLineIndent);

    activeDocument.textFrames[0].paragraphs[0].paragraphAttributes.firstLineIndent = 0;
    alert(activeDocument.textFrames[0].paragraphs[0].paragraphAttributes.firstLineIndent);

    You have two alerts saying 20, while the second one should show and actually set the first line indent value to 0 — and it does not.

    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)
  5. Justification bug, cannot set 'center' in v24.2 using AppleScript

    Running a script to set the justification of text works perfectly for left and right, but no longer works for center. Putting the example script given in the latest Illustrator CC Scripting Guide, page 122, into a Script Editor visually compiles centre differently to left and right and only works if you remove or comment out the line justifying to center.

    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

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

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

    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. 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)
  9. 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)
  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. 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)
  12. 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/9834514

    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)
  13. Join command is unavailable when run from an action via a script

    We have an action that works, when launched form the Actions panel.
    Operations are simple:
    1. Copy
    2. Deselect All
    3. Paste in Front
    4. Join
    5. Join
    It is designed to create a new closed shape from two segments from different shapes.

    However, when we call this exact action from a script with a app.doScript, it doesn’t work, an error message 'The object "Join" is not currently available' is displayed.

    Please see the video.

    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)
  14. ExtendScript経由のスクリーン用に書き出しが固まる

    説明

    ExtendScript経由で[スクリーン用に書き出し]を実行すると動作が遅くなり,動いていないように見えます(実際は動いていて長い時間待てば終わる)。その間レインボーカーソルが出ています。

    JPEGを書き出すときに顕著です。書き出す画像がある程度大きいと,プログレスバーが99%くらいになった後ほとんど進みません。CPU使用率は100%前後になります。

    例:1700x1000pxのアートボード8枚を300ppiで書き出すとき,かかる時間は228.175秒(できたJPEGの重さは1点につき2.9MB)

    同じ条件の書き出しをGUIから手動で実行すると,すぐに終わります。

    例:1700x1000pxのアートボード8枚を300ppiで書き出すとき,かかる時間は2秒くらい(できたJPEGの重さは1点につき1.8MB)

    PNG24は手動よりは遅いですが,JPEG程大きく影響しません。CPU使用率は160%前後でした。

    例:1700x1000pxのアートボード8枚を300ppiで書き出すとき,かかる時間は57.745秒

    次の条件で起こります。
    * 少なくともIllustrator 2020〜2022(24.3.0〜26.0.2)
    * 少なくともmacOS Monterey 12.0.1(Apple Silicon) / Big Sur 11.6(Apple Silicon)の2環境
    * 少なくともMacBook Air(Apple Silicon, 16GBメモリ) / iMac(Apple Silicon, メモリ不明)の2機種
    * ExtendScriptのDocument.exportForScreens経由で実行
    * オプションJPG 100,300ppi(アートボードサイズは1700x1000px)

    次の条件では起こりません。
    * オプションをJPG 100,72ppiにしたとき
    * オプションをPNG24,300ppiにしたとき
    * GUIから手動で実行したとき

    次の項目はあまり影響しないようです。
    * IllustratorをRosettaで起動するかどうか。Rosettaにしたらさらに遅くなる
    * アートボード上のアイテムを単純なデータにすること。四角いパスとグラデーションだけでも遅くなる

    期待する動作

    ExtendScript経由で[スクリーン用に書き出し]を実行したとき,GUI経由で行うのと同じくらい速く動きます。

    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)
  15. 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 object

    Etc., 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…

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

    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)
  17. 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)
  18. 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)
  19. 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)
  20. 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)
  • Don't see your idea?

Illustrator (Desktop) SDK/Scripting Issues

Categories

Feedback and Knowledge Base