Copy link to clipboard
Copied
after breaking the symbols link automatically symbols element diselecds, how to select a symbols group back after deselect?
var objs = app.activeDocument.selection;
for (i = 0; i < objs.length; i++) {
var type = objs[i].typename;
if (type == "SymbolItem") {
objs[i].breakLink();
}
}
Copy link to clipboard
Copied
app.executeMenuCommand("selectall");
Copy link to clipboard
Copied
Hi @BRODZELi, when I run your code it doesn't deselect the "broken symbols"—they stay selected. I'm using AI 25.3.1.
Copy link to clipboard
Copied
Hi,
I usually create a new layer before breaking the link. The artwork can be found as the first groupItem in that layer