Illustrator31
Changes

What’s new in Illustrator 31

The scripting API of Illustrator 31 compared with Illustrator 29. 7 new objects, 59 changes on 14 objects, 1 that can break existing scripts. Generated from Adobe’s object model exports.

Highlights

WebP and AVIF export

Export and Export for Screens know WebP and AVIF, each with its own options object, and exportAsFormat() writes any format listed in ExportFileType. In 31.0 only WebP works from a script; every AVIF export fails with an internal error.

ExportOptionsWebP · ExportOptionsAVIF · ExportForScreensOptionsWebP · ExportForScreensOptionsAVIF · ExportType.WEBP · ExportType.AVIF · ExportForScreensType.SE_WEBP · ExportForScreensType.SE_AVIF · Document.exportAsFormat() · ExportFileType

List styles

Documents carry list styles, and a paragraph can take one together with its tier (level). The predefined styles report internal names such as kPredefinedBulletListStyleTag.

ListStyle · ListStyles · Document.listStyles · ParagraphAttributes.listStyle · ParagraphAttributes.listStyleTier

View rotation renamed

View.rotate is now View.rotateAngle. An old script that sets rotate keeps running without an error but no longer rotates the view.

View.rotateAngle

9-slice scaling for symbols

A symbol can be created with 9-slice scaling guides, and its center slice can be read and set by symbol index.

Symbols.addWith9SliceScaling() · Document.getSymbol9SliceGrid() · Document.setSymbol9SliceGrid() · Document.isSymbolGuidesEnabled() · Document.openSymbolInIsolationMode()

Reading the workspace state

Many new methods report what the user sees — grid, guides, rulers, screen, view and preview mode, isolation and smart edit mode — and a few change it.

Document.isGridVisible() · Document.isRulerVisible() · Document.getScreenMode() · Document.getViewMode() · Document.getPreviewMode() · View.setScreenMode() · Document.isolateSelectedArt() · Document.exitIsolationMode()

Breaking 1

  • −property View.rotate removedThe rotation angle of this view.

New objects 7

By object 14

Application

Artboard

Artboards

Document

ExportForScreensType

  • +value SE_AVIF = 10Export file in AVIF format.
  • +value SE_WEBP = 9Export file in WebP format.

ExportType

  • +value AVIF = 12AVIF export file format.
  • +value WEBP = 11WebP export file format.

GroupItem

IllustratorSaveOptions

PageItem

ParagraphAttributes

PathItem

Symbols

TracingOptions

View

Minor 4

Renamed parameters and reworded descriptions. Calls are positional, so a renamed parameter keeps working.

  • ~value RulerUnits.Feet description: “Ruler units are measured in pixels.” → “Ruler units are measured in feet.”
  • ~value RulerUnits.FeetInches description: “Ruler units are measured in pixels.” → “Ruler units are measured in Feet and Inches.”
  • ~value RulerUnits.Meters description: “Ruler units are measured in pixels.” → “Ruler units are measured in meters.”
  • ~value RulerUnits.Yards description: “Ruler units are measured in pixels.” → “Ruler units are measured in yards.”