Hello, I'm looking to make a script that toggles hiding a layer whose name is, for example, "CAD"
I got a basic script working that hides it OK, but if the layer has sublayers, which in most cases it does, it hides the parent, but the sublayers' visibility remains unchanged.
I searched the help files but there is no getchildren, or something like that.
I'd really appreciate some help since I've been struggling with this one for a while.
Here's my script:
for i = 0 to (layermanager.count - 1) do
(
x = layermanager.getlayer i
layername = x.name as string
location = findString layername "CAD"
if location == 1 do
(
if x.on == true then x.on = false
else x.on = true
)
)
miauu · 2015-03-10