All Projects → elcontraption → illustrator-point-exporter

elcontraption / illustrator-point-exporter

Licence: MIT license
✨ JSON exporter for Adobe Illustrator: get point coordinates from paths by layer.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to illustrator-point-exporter

brutalism
Battleaxe's component library for Adobe CEP panels
Stars: ✭ 43 (-40.28%)
Mutual labels:  illustrator, adobe-illustrator
SwiftyIllustrator
A tool for quickly converting Adobe Illustrator shapes into SwiftUI code.
Stars: ✭ 26 (-63.89%)
Mutual labels:  illustrator, adobe-illustrator
illustrator-scripts
Set of scripts to improve Icons workflow
Stars: ✭ 26 (-63.89%)
Mutual labels:  illustrator, adobe-illustrator
adobe-scripts
Drafts and unsorted JSX scripts for Adobe Illustrator, Photoshop
Stars: ✭ 29 (-59.72%)
Mutual labels:  adobe-illustrator
ai-scripts
Scripts for Adobe Illustrator.
Stars: ✭ 18 (-75%)
Mutual labels:  illustrator
adobe-discord-rpc
Discord Rich Presence extension for your adobe apps!
Stars: ✭ 383 (+431.94%)
Mutual labels:  illustrator
adobe-illustrator-layer-renamer
Adobe Illustrator script to batch rename layers.
Stars: ✭ 40 (-44.44%)
Mutual labels:  illustrator
axo
Dynamic SSR GUI for Illustrator
Stars: ✭ 15 (-79.17%)
Mutual labels:  adobe-illustrator
Make-This
Project files for the Make This video series and community challenges.
Stars: ✭ 16 (-77.78%)
Mutual labels:  illustrator
NS-illustration-pack
Package of 3D low poly illustrations created in a Blender
Stars: ✭ 28 (-61.11%)
Mutual labels:  illustrator
ai-scripts
A collection of useful Illustrator scripts
Stars: ✭ 37 (-48.61%)
Mutual labels:  illustrator
favicon
🖼 An attempt to capture all possible favicons for a web project.
Stars: ✭ 17 (-76.39%)
Mutual labels:  illustrator
ovid-editor
Adobe panel providing the most advanced scripting environment possible -- Typescript, app DOM autocomplete, full I/O features and more
Stars: ✭ 43 (-40.28%)
Mutual labels:  illustrator
ai-image-fill
Simple Adobe Illustrator Panel to generate placeholder image content from Flickr or Unsplash
Stars: ✭ 30 (-58.33%)
Mutual labels:  illustrator
latex2ai
LaTeX Plugin for Adobe Illustrator
Stars: ✭ 89 (+23.61%)
Mutual labels:  adobe-illustrator
shop-app
A shopping mobile application made with react native for Android.
Stars: ✭ 100 (+38.89%)
Mutual labels:  adobe-illustrator
Apssistant
A Photoshop Tweak Tool on Windows. It can disable ALT to activate the menu bar.
Stars: ✭ 48 (-33.33%)
Mutual labels:  illustrator
chord-illustrator-js
SVG-based library, which illustrates finger positions of a guitar chord on a fretboard.
Stars: ✭ 17 (-76.39%)
Mutual labels:  illustrator
illustrator-shortcuts
collection of scripts and shortcuts for illustrator
Stars: ✭ 38 (-47.22%)
Mutual labels:  illustrator
brand
Logos, icons, screenshots, and other media related to the Bitwarden brand.
Stars: ✭ 60 (-16.67%)
Mutual labels:  illustrator

Illlustrator Point Exporter

Export [x, y] anchor point coordinates as JSON from Adobe Illustrator.

Tested on versions 19.2.0, 21.1.0, 22.0.1., 22.1.0.

Features

  • Points are organized by path and layer.
  • Nested layers are supported.
  • Z-order, and path areas and centroids are included.
  • Layer, path, or point names are preserved in the output.

Usage

  1. Clone/download this repo locally.
  2. In Illustrator, File > Scripts > Other Script and locate dist/exporter.js.
  3. Name and save your JSON export.

Example output

This Illustrator file:

Example image

Will produce this JSON (pretty-printed here for clarity):

{
  "layers": [
    {
      "name": "Level 1 layer",
      "zOrderPosition": 1,
      "layers": [
        {
          "name": "Polygons",
          "zOrderPosition": 2,
          "paths": [
            {
              "name": "Hexagon",
              "area": 20977.0556936124,
              "points": [
                [
                  203.620465653063,
                  284.760368663594
                ],
                [
                  158.692544209353,
                  206.942926044627
                ],
                [
                  203.620465653063,
                  129.125483425658
                ],
                [
                  293.476308540483,
                  129.125483425658
                ],
                [
                  338.404229984191,
                  206.942926044627
                ],
                [
                  293.476308540483,
                  284.760368663594
                ]
              ],
              "centroid": [
                248.548387096773,
                206.942926044626
              ]
            },
            {
              "name": "Rectangle",
              "area": 14950.4130476334,
              "points": [
                [
                  330.57603686636,
                  328.539170506912
                ],
                [
                  127.811059907835,
                  328.539170506912
                ],
                [
                  127.811059907835,
                  254.806451612902
                ],
                [
                  330.57603686636,
                  254.806451612902
                ]
              ],
              "centroid": [
                229.193548387097,
                291.672811059907
              ]
            },
            {
              "name": "Square",
              "area": 9099.57739599474,
              "points": [
                [
                  134.26267281106,
                  156.188940092165
                ],
                [
                  38.8709677419356,
                  156.188940092165
                ],
                [
                  38.8709677419356,
                  60.7972350230411
                ],
                [
                  134.26267281106,
                  60.7972350230411
                ]
              ],
              "centroid": [
                86.5668202764978,
                108.493087557603
              ]
            }
          ]
        },
        {
          "name": "Level 2 layer",
          "zOrderPosition": 1,
          "layers": [
            {
              "name": "Level 3 layer",
              "zOrderPosition": 2,
              "layers": [
                {
                  "name": "Paths",
                  "zOrderPosition": 1,
                  "paths": [
                    {
                      "name": "Squiggle",
                      "area": -6237.87933487678,
                      "points": [
                        [
                          350.391705069123,
                          49.2764976958515
                        ],
                        [
                          254.539170506911,
                          117.47926267281
                        ],
                        [
                          234.262672811059,
                          235.451612903225
                        ],
                        [
                          80.8064516129016,
                          195.359447004607
                        ],
                        [
                          64.2165898617495,
                          310.566820276497
                        ]
                      ],
                      "centroid": [
                        25.293199202684,
                        246.13710365416
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "name": "Points",
              "zOrderPosition": 1,
              "paths": [
                {
                  "name": "Point 1",
                  "area": 0,
                  "points": [
                    [
                      294.631336405528,
                      230.843317972349
                    ]
                  ],
                  "centroid": [
                    null,
                    null
                  ]
                },
                {
                  "name": "Point 2",
                  "area": 0,
                  "points": [
                    [
                      269.7465437788,
                      60.7972350230411
                    ]
                  ],
                  "centroid": [
                    null,
                    null
                  ]
                },
                {
                  "name": "Point 3",
                  "area": 0,
                  "points": [
                    [
                      200,
                      151.119815668202
                    ]
                  ],
                  "centroid": [
                    null,
                    null
                  ]
                }
              ]
            }
          ],
          "paths": [
            {
              "name": "PathItem",
              "area": 10630.6634270187,
              "points": [
                [
                  118.474654377878,
                  381.907834101381
                ],
                [
                  81.8829964485049,
                  338.881193167344
                ],
                [
                  25.6943079861912,
                  344.632066924605
                ],
                [
                  55.3076310682682,
                  296.535368949346
                ],
                [
                  32.4749654805391,
                  244.873868368682
                ],
                [
                  87.3686635944687,
                  258.175115207372
                ],
                [
                  129.445988669805,
                  220.495678181436
                ],
                [
                  133.758836790312,
                  276.81299879576
                ],
                [
                  182.596719430278,
                  305.187326617433
                ],
                [
                  130.368508043138,
                  326.692098073721
                ]
              ],
              "centroid": [
                97.7373271889382,
                299.419354838708
              ]
            }
          ]
        }
      ]
    }
  ]
}

Contributing

Clone this repo, install dependencies, run build script:

$ npm install
$ npm run build

Work on src/exporter.js.

Useful references:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].