{"id":13576888,"url":"https://github.com/elcontraption/illustrator-point-exporter","last_synced_at":"2025-07-26T16:31:25.117Z","repository":{"id":49519703,"uuid":"49029878","full_name":"elcontraption/illustrator-point-exporter","owner":"elcontraption","description":":sparkles: JSON exporter for Adobe Illustrator: get point coordinates from paths by layer. ","archived":false,"fork":false,"pushed_at":"2021-01-29T02:48:33.000Z","size":2901,"stargazers_count":83,"open_issues_count":4,"forks_count":18,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-29T17:42:02.298Z","etag":null,"topics":["adobe-illustrator","illustrator","json-export"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elcontraption.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-04T23:36:39.000Z","updated_at":"2024-11-18T13:13:04.000Z","dependencies_parsed_at":"2022-09-26T16:31:59.790Z","dependency_job_id":null,"html_url":"https://github.com/elcontraption/illustrator-point-exporter","commit_stats":null,"previous_names":["elcontraption/illustrator-point-coordinate-exporter"],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elcontraption%2Fillustrator-point-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elcontraption%2Fillustrator-point-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elcontraption%2Fillustrator-point-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elcontraption%2Fillustrator-point-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elcontraption","download_url":"https://codeload.github.com/elcontraption/illustrator-point-exporter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227694296,"owners_count":17805558,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["adobe-illustrator","illustrator","json-export"],"created_at":"2024-08-01T15:01:15.526Z","updated_at":"2024-12-02T08:25:49.940Z","avatar_url":"https://github.com/elcontraption.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Illlustrator Point Exporter\nExport [x, y] anchor point coordinates as JSON from Adobe Illustrator.\n\n- [Features](#features)\n- [Usage](#usage)\n- [Example output](#example-output)\n- [Contributing](#contributing)\n\nTested on versions 19.2.0, 21.1.0, 22.0.1., 22.1.0.\n\n## Features\n- Points are organized by path and layer.\n- Nested layers are supported.\n- Z-order, and path areas and centroids are included.\n- Layer, path, or point names are preserved in the output.\n\n## Usage\n1. Clone/download this repo locally.\n2. In Illustrator, File \u003e Scripts \u003e Other Script and locate [`dist/exporter.js`](dist/exporter.js).\n3. Name and save your JSON export.\n\n## Example output\nThis [Illustrator file](test/test.ai):\n\n![Example image](test/test.png)\n\nWill produce this JSON (pretty-printed here for clarity):\n```json\n{\n  \"layers\": [\n    {\n      \"name\": \"Level 1 layer\",\n      \"zOrderPosition\": 1,\n      \"layers\": [\n        {\n          \"name\": \"Polygons\",\n          \"zOrderPosition\": 2,\n          \"paths\": [\n            {\n              \"name\": \"Hexagon\",\n              \"area\": 20977.0556936124,\n              \"points\": [\n                [\n                  203.620465653063,\n                  284.760368663594\n                ],\n                [\n                  158.692544209353,\n                  206.942926044627\n                ],\n                [\n                  203.620465653063,\n                  129.125483425658\n                ],\n                [\n                  293.476308540483,\n                  129.125483425658\n                ],\n                [\n                  338.404229984191,\n                  206.942926044627\n                ],\n                [\n                  293.476308540483,\n                  284.760368663594\n                ]\n              ],\n              \"centroid\": [\n                248.548387096773,\n                206.942926044626\n              ]\n            },\n            {\n              \"name\": \"Rectangle\",\n              \"area\": 14950.4130476334,\n              \"points\": [\n                [\n                  330.57603686636,\n                  328.539170506912\n                ],\n                [\n                  127.811059907835,\n                  328.539170506912\n                ],\n                [\n                  127.811059907835,\n                  254.806451612902\n                ],\n                [\n                  330.57603686636,\n                  254.806451612902\n                ]\n              ],\n              \"centroid\": [\n                229.193548387097,\n                291.672811059907\n              ]\n            },\n            {\n              \"name\": \"Square\",\n              \"area\": 9099.57739599474,\n              \"points\": [\n                [\n                  134.26267281106,\n                  156.188940092165\n                ],\n                [\n                  38.8709677419356,\n                  156.188940092165\n                ],\n                [\n                  38.8709677419356,\n                  60.7972350230411\n                ],\n                [\n                  134.26267281106,\n                  60.7972350230411\n                ]\n              ],\n              \"centroid\": [\n                86.5668202764978,\n                108.493087557603\n              ]\n            }\n          ]\n        },\n        {\n          \"name\": \"Level 2 layer\",\n          \"zOrderPosition\": 1,\n          \"layers\": [\n            {\n              \"name\": \"Level 3 layer\",\n              \"zOrderPosition\": 2,\n              \"layers\": [\n                {\n                  \"name\": \"Paths\",\n                  \"zOrderPosition\": 1,\n                  \"paths\": [\n                    {\n                      \"name\": \"Squiggle\",\n                      \"area\": -6237.87933487678,\n                      \"points\": [\n                        [\n                          350.391705069123,\n                          49.2764976958515\n                        ],\n                        [\n                          254.539170506911,\n                          117.47926267281\n                        ],\n                        [\n                          234.262672811059,\n                          235.451612903225\n                        ],\n                        [\n                          80.8064516129016,\n                          195.359447004607\n                        ],\n                        [\n                          64.2165898617495,\n                          310.566820276497\n                        ]\n                      ],\n                      \"centroid\": [\n                        25.293199202684,\n                        246.13710365416\n                      ]\n                    }\n                  ]\n                }\n              ]\n            },\n            {\n              \"name\": \"Points\",\n              \"zOrderPosition\": 1,\n              \"paths\": [\n                {\n                  \"name\": \"Point 1\",\n                  \"area\": 0,\n                  \"points\": [\n                    [\n                      294.631336405528,\n                      230.843317972349\n                    ]\n                  ],\n                  \"centroid\": [\n                    null,\n                    null\n                  ]\n                },\n                {\n                  \"name\": \"Point 2\",\n                  \"area\": 0,\n                  \"points\": [\n                    [\n                      269.7465437788,\n                      60.7972350230411\n                    ]\n                  ],\n                  \"centroid\": [\n                    null,\n                    null\n                  ]\n                },\n                {\n                  \"name\": \"Point 3\",\n                  \"area\": 0,\n                  \"points\": [\n                    [\n                      200,\n                      151.119815668202\n                    ]\n                  ],\n                  \"centroid\": [\n                    null,\n                    null\n                  ]\n                }\n              ]\n            }\n          ],\n          \"paths\": [\n            {\n              \"name\": \"PathItem\",\n              \"area\": 10630.6634270187,\n              \"points\": [\n                [\n                  118.474654377878,\n                  381.907834101381\n                ],\n                [\n                  81.8829964485049,\n                  338.881193167344\n                ],\n                [\n                  25.6943079861912,\n                  344.632066924605\n                ],\n                [\n                  55.3076310682682,\n                  296.535368949346\n                ],\n                [\n                  32.4749654805391,\n                  244.873868368682\n                ],\n                [\n                  87.3686635944687,\n                  258.175115207372\n                ],\n                [\n                  129.445988669805,\n                  220.495678181436\n                ],\n                [\n                  133.758836790312,\n                  276.81299879576\n                ],\n                [\n                  182.596719430278,\n                  305.187326617433\n                ],\n                [\n                  130.368508043138,\n                  326.692098073721\n                ]\n              ],\n              \"centroid\": [\n                97.7373271889382,\n                299.419354838708\n              ]\n            }\n          ]\n        }\n      ]\n    }\n  ]\n}\n```\n\n## Contributing\n\nClone this repo, install dependencies, run `build` script:\n\n```sh\n$ npm install\n$ npm run build\n```\n\nWork on [`src/exporter.js`](src/exporter.js).\n\nUseful references:\n- [Scripting for Illustrator Tutorial](https://github.com/jtnimoy/scripting-for-illustrator-tutorial)\n- [Illustrator Scripting Guide](http://www.adobe.com/devnet/illustrator/scripting.html)\n- [Illustrator Scripting References (PDFs)](reference/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felcontraption%2Fillustrator-point-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felcontraption%2Fillustrator-point-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felcontraption%2Fillustrator-point-exporter/lists"}