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:

layer3.png

and looked fine. used line currentlayer.locked=false; unlock locked ones. finally, checked sublevels and, sure enough, there level locked.

layer4.png

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

Popular posts from this blog

Soustraire une selection

After Effects: could not find dvaeve_dialogs.txt

Illustrator cs6 "Invalid Serial Number"