Unlocking sublayers
i trying resize art specific dimensions. script ran fine except 1 file , drove me crazy trying find why 1 layer not resize. checked make sure layer wasn't locked:
and looked fine. used line currentlayer.locked=false; unlock locked ones. finally, checked sublevels and, sure enough, there level locked.
is there way unlock sublayers?
as option:
function unlockedsublayers ( layers ) { var = layers.length; if ( ) { while ( i-- ) { layers[i].locked = false; unlockedsublayers( layers[i].layers ); } } } unlockedsublayers( activedocument.layers );
More discussions in Illustrator Scripting
adobe
Comments
Post a Comment