PDA

View Full Version : del All Layers Script - delAllLayers.mel


Omita
08-16-2005, 07:02 PM
Here is my stupid stimple script with some Icon I have made for it. I was tired of watching some artist here delete layers one by one. I think the Icons are more impressive then the script. :)

4 Shelf Icons to pick from:

http://boards.omita.com/delAllLayers1.gif http://boards.omita.com/delAllLayers.gif http://boards.omita.com/delAllLayers2.gif http://boards.omita.com/delAllLayers3.gif

The Direct Link:

http://www.omita.com/Mel/delAllLayers.zip

The script is added to my little mel page:

http://www.omita.com/Mel/index.php

-Hays

Mikademius
08-16-2005, 09:34 PM
Actually, that could be quite handy :) I'll read through it

DangerAhead
08-17-2005, 11:34 PM
Here's one for rigging to create layers:

global proc gmResetDisplayLayer (string $nameOfLayer, int $displayType ){
string $Layer_List[] = `ls -typ displayLayer`;
for ( $j = 0; $j < `size $Layer_List`; $j++ ) {
if ($Layer_List[$j] == $nameOfLayer){
layerEditorDeleteLayer $Layer_List[$j];
}
}
createDisplayLayer -name $nameOfLayer -number 1 -empty;
// displayType = 0 NORMAL
// displayType = 1 TEMPLATE
// displayType = 2 REFERENCE
setAttr ($nameOfLayer + ".displayType") $displayType;
}

CGTalk Moderation
08-17-2005, 11:34 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.