• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Scripting: How can I add a group to Asset Export Panel?

Explorer ,
Jul 25, 2017 Jul 25, 2017

Copy link to clipboard

Copied

(my nickname is ammoniaavenue)

Hi,

I've tried to find documentation but I could not find. I want to add all groups to Asset Export panel and I want to change its names. Currently I have 50 groups and all of them have to be export seperatly. To do that I have to add them one by one to asset export because Illustrator 2017 doesn't do that. If you select all groups and drag it to panel they become one asset.

anyway, how can I add an item to asset export panel via scripting?

thank you.

TOPICS
Scripting

Views

898

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Jul 25, 2017 Jul 25, 2017

Copy link to clipboard

Copied

You may have better luck posting on

Illustrator Scripting  forum

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 25, 2017 Jul 25, 2017

Copy link to clipboard

Copied

i can't see any reference to asset export in the 2017 scripting reference. my guess is it's not accessible via extendscript.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Aug 23, 2017 Aug 23, 2017

Copy link to clipboard

Copied

Moving to Illustrator Scripting​

Regards

Srishti

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 23, 2017 Aug 23, 2017

Copy link to clipboard

Copied

LATEST

There are no way to access asset export. However, we can export each groups to png file.

Here is a solution to export you can reference.

var options = new ExportOptionsPNG24();

options.artBoardClipping = true;

options.matte = true;

var tg = app.activeDocument.groupItems;

var tgFldr = Folder.selectDialog ("Select Export Holder");

var dstFl;

for (var i=0;i<tg.length;i++){

  app.executeMenuCommand("deselectall");

  tg.selected = true;

  app.executeMenuCommand("Fit Artboard to selected Art");

  dstFl = tgFldr.fsName + "/exportPng" + i + ".png";

  $.writeln(dstFl)

  app.activeDocument.exportFile (File(dstFl), ExportType.PNG24, options);

  }

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines