del All Layers Script - delAllLayers.mel

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
  08 August 2005
del All Layers Script - delAllLayers.mel

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:

Software Engineer
  08 August 2005
Actually, that could be quite handy I'll read through it
Martin Andersson
  08 August 2005
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;

Last edited by DangerAhead : 08 August 2005 at 11:18 PM.
  08 August 2005
Thread automatically closed

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.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 12:35 PM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.