PhannGor

  • 2015年7月25日
  • 2015年2月14日に参加
  • Sure, why not? Unfortunately, github doesn't support pull requests for gists, so my latest verson available here:

    Feel free to include it with Spine if you want.

  • Hi guys,

    I've decided to spend some time to slightly improve import script for Adobe Illustrator:

    For now it:

    • Checks that active doc exists and has ben saved
    • Has option to explicitly ignore hidden layers, or not
    • Allows to specify the output directory (using absolute or relative path)
       Loading Image

    Unfortunately, this revision doesn't save settings between script runs. Approach with 'CustomOptions' doesn't work in illustrator for some reason, at least for me...

    I have an idea to save settings to XMP metadata associated with document, which means that script will have "per-document" settings. But docs from Adobe are very poor, so I would appreciate if someone would give me an example how to work with XMP metadata in Illustrator.


    Upd: I've figured out how to work with XMP, so now script settings will be saved between script runs. Unlike photoshop script, settings will be saved directly to document metadata, so they will be individual for each AI file. As for me, it's even more convenient 🙂

    Also, i've added option to clear output folder before saving PNG files. Now you don't need to delete output files manually after changing layer name or deleting layers.

     Loading Image


    Upd 2: And now PNG scaling is also supported!

     Loading Image


    Good news: JSON export is also supported now! Uh-huh! I did it!
    Bad news: Feature to use groups as skins isn't implemented yet...

     Loading Image