CGTalk > Software > Autodesk Maya > Maya Programming
Login register
Thread Closed share thread « Previous Thread | Next Thread »  
Thread Tools Search this Thread Display Modes
Old 08-16-2005, 06:02 PM   #1
Cubicle Camper
Omita's Avatar
Hays Clark
Senior Game Developer
Seattle, USA
Join Date: Jan 2002
Posts: 459
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
Old 08-16-2005, 08:34 PM   #2
Little Brother
Mikademius's Avatar
Martin Andersson
Project Manager, Asset Lead
Animation -Hut
Oslo, Norway
Join Date: Jun 2002
Posts: 958
Actually, that could be quite handy I'll read through it
Martin Andersson
Old 08-17-2005, 10:34 PM   #3
Rigger Lover
DangerAhead's Avatar
Geordie Martinez
Character TD - Rigger - Massive TD
Industrial Light & Magic
San Francisco, USA
Join Date: Jun 2003
Posts: 437
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-17-2005 at 11:18 PM.
Old 08-17-2005, 10:34 PM   #4
CGTalk Moderation
CGTalk Forum Leader
Join Date: Sep 2003
Posts: 1,066,478
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 05:12 AM.

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