Thanks guys the script worked for me. I made some changes and here they are:string $layerlist[] = `ls -type "displayLayer"`;for ($layer in $layerlist) { if ($layer != "defaultLayer") { string $lyrChk = endsWith ($layer, "LPL"); if ($lyrChk) { setAttr ($layer+".visibility") 1; } } } @Passerby: I agree mel seems outdated…
I'm trying to write a Mel script to set all Display layers with "LPL in it's name to visible. Display layers seems to have very bad documentation and I cant find anything. I've got many many layers and switching each one on one by muda-nuckin one is getting bothersome. Any help is much appreciated. :) Till then I shall be…