Anyone know of a way to call sublayers by name in JS?
Trying to get a script to work on a AI file that has been exported out of arcMap, in which almost all the layers are actually sublayers of a few top level layers.
For instance, the line
var targetLayer = myDoc.layers.getByName ("Road - Dirt (base)")
does not find the layer "Road - Dirt (base)" unless it is a top-level layer. I can't find any reference to sublayers in any of the Adobe documentation.
Javascript in Illustrator
Started by
Brian Moran
, Feb 18 2011 09:38 PM
2 replies to this topic
#1
Posted 18 February 2011 - 09:38 PM
#2
Posted 19 February 2011 - 03:55 AM
The layer object has a property 'layers' which is the collection of sublayers.
Michael Schmeling
Kassel, Germany
Arid Ocean Map Illustrations
http://maps.aridocean.com
Indie Cartographer
http://www.indiecartographer.com
Kassel, Germany
Arid Ocean Map Illustrations
http://maps.aridocean.com
Indie Cartographer
http://www.indiecartographer.com
#3
Posted 19 February 2011 - 05:14 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users


Sign In
Create Account

United States
Back to top
Germany









