My plugin runs with the below error with 「Athens」2025.1 version:
artboard.sketchObject.children is not a function. (In ‘artboard.sketchObject.children()’, ‘artboard.sketchObject.children’ is undefined);
When my plugin executed the below code:
originArtboards.forEach(artboard => {
const cnt = artboard.sketchObject.children().count()
})
originArtboards.forEach(artboard => {
const children = artboard.sketchObject.children();
const layerEnumerator = children.objectEnumerator();
const layersCount = children.count();
})
The above code could run well in the previous all versions, so how to rewrite the code to compatible with the 「Athens」version