Hi folks,
A similar question has been asked before, but I'm asking a much simplified version of it:
"Is there a way to determine the visible bounds of a layer in Illustrator CS5+?"
I ask because I'm trying to export layers with their upper-left coordinates in an XML file. I've got the XML export working for objects, but would like to extend the funtionality to layers as well.
Many thanks in advance!
macdonaldshall
"Is there a way to determine the visible bounds of a layer in Illustrator CS5+?"
the Document.visibleBounds property returns the bounds of whatever is visible in the document...so, hide all layers, except one, and run the code
var idoc = app.activeDocument;
var bounds = idoc.visibleBounds;
$.writeln("visible layer bounds = " + bounds);
North America
Europe, Middle East and Africa
Asia Pacific