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

SVG export script with access to document nodes?

New Here ,
Oct 06, 2018 Oct 06, 2018

Hi,

It looks like when exporting a document as SVG, Illustrator will not export empty layers. I can't find any editor settings to control this, but saw there was an svg export script provided. I was hoping I could modify this to include empty layers, but the script is at such a high level that you don't have a chance to look at the logic of how illustrator decides which layers to export or not.

Does anyone know if there's a lower-level script example for svg that iterates over all document nodes so we have more control over what is being exported?

Thanks

TOPICS
Scripting
236
Translate
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
Valorous Hero ,
Oct 07, 2018 Oct 07, 2018
LATEST

I always examine the fastest route to the solution, in your case you may be able to hack the feature by sticking in a placeholder path into empty layers with certain naming conventions and then use regular expressions to remove the placeholders or an after-processing HTML local file which uses web frameworks such as jquery or even vanilla browser JS to handle the nodes are proper nodes and then download an after-processed file.

Translate
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