Ármányos Kő Posted December 18, 2006 Posted December 18, 2006 (edited) I am trying to switch layer visibilities into TRUE mode in Illustrator. Switching to FALSE is ok, and can be seen after each MSGBOX. CODEAutoitsetoption("WinTitleMatchMode", 2) Winactivate("Illustrator","") $oIll = ObjGet("","Illustrator.Application") $layers = $oIll.Documents(1).Layers.Count For $i = 1 to $layers $layervisi = $oIll.Documents(1).Layers($i).Visible MsgBox(0,$layers,$oIll.Documents(1).Layers($i).Name&@CRLF&$layervisi) Select Case $layervisi = FALSE $oIll.Documents(1).Layers($i).Visible = TRUE Case $layervisi = TRUE $oIll.Documents(1).Layers($i).Visible = FALSE ;This line just does not function. EndSelect Next $oIll.Documents(1).Layers(1).Visible = TRUE ;Tried this simple line, does nothing at all... Outside the script it is possible to click and switch the layers into TRUE (switch on). The file has no lock, password, or whatever. I am logged in as admin. What can be wrong??? I have no idea, other then bug in Illy. Thanks Edited December 18, 2006 by Ármányos Kő
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now