Copy link to clipboard
Copied
Does anyone know if the name property of a page item appear anywhere in the user interface in Illustratpr CS6?
I thought it would be the name you assign to it in the Layers palette, but it does not appear to be.
Copy link to clipboard
Copied
I don't have CS6, but yes, the name is what you see in the Layers palette...show you code and the layers palette expanded.
Copy link to clipboard
Copied
You have an opened document with page items?
try this:
app.activeDocument.layers[0].pageItems[0].name = "my Item #1";
app.activeDocument.layers[0].pageItems[0].selected = true;
app.redraw();
alert(app.activeDocument.layers[0].pageItems[0].name);
Find more inspiration, events, and resources on the new Adobe Community
Explore Now