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

08-16-2005, 06: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:

The Direct Link:

The script is added to my little mel page:


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

08-17-2005, 10: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, 10: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.