Hey Yann I know you aren´t as active around here nowadays, but I´ve been using a program outside C2 called Metaplot and was wondering if your plugin could be capable of loading vector shapes made with it, as it exports .json but just in a different syntax.
(Apart from vertex, Metaplot draws lines and is capable of inserting metadata to differ parts of the drawing)
Thanks in advance
Edit: Added a comparison between the plugin´s export syntax and Metaplot´s
Polygon plugin:
{"c2polygon":true,"vertexCount":4,"vertices":[[15,-15],[-15,-15],[-15,15],[15,15]]}
Metaplot .json:
{
"verts": [
{"x": -30.000000, "y": -40.000000, "hasMeta": false, "metaIndex": 0},
{"x": -30.000000, "y": 30.000000, "hasMeta": false, "metaIndex": 0},
{"x": 40.000000, "y": 30.000000, "hasMeta": false, "metaIndex": 0},
{"x": 40.000000, "y": -40.000000, "hasMeta": false, "metaIndex": 0}
],
"lines": [
{"idx1": 0, "idx2": 1, "hasMeta": false, "metaIndex": 0},
{"idx1": 1, "idx2": 2, "hasMeta": false, "metaIndex": 0},
{"idx1": 2, "idx2": 3, "hasMeta": false, "metaIndex": 0},
{"idx1": 3, "idx2": 0, "hasMeta": false, "metaIndex": 0}
],
"metas": [
]
}