Sorry, it's my another question. I have read the whole document, but I can't find the way to get the type of a layer.
The Dev Tool can output the text like MSRectangleShape
or MSTextLayer
, how could I get this?
const selectedLayers = context.selection;
selectedLayers.forEach(e => {
// how to get the type of each element?
})
Thanks for your answer...