ScriptSpot

Script

Layer Renamer

By Swordslayer · 2011-06-19

Version
0.03b
Version requirement
3ds Max 9, VIZ 2008
Date updated
2011-06-22
Votes
17
Downloads
Description

Does what the title says, renames layers. Renaming is possible for single items (double-click on list item), selected items and all items in the list. The default layer 0 can't be renamed and if the user creates a situation where more than one layer will share the same name, only the first layer will get renamed. Resulting names of zero length are automatically skipped.

Additional Info

v0.02b:
    Added a similar editable list of predefined values for the layer list. If you now rightclick in the layer list you can pick a name and the first selected layer will get renamed to that value. This is the only feature of the script available only for max 2010+, the rest is still max 9+.

v0.02b:
    Added the possibility to swap Find and Search text fields content.
    Added "..." buttons next to the text fields. They allow the user to save and enter some frequently used values for the individual text fileds (see "Layer" in the following picture).

v0.01b:
  Initial release.

Comments (8)

barigazy · 2012-05-24

Very nice rename tool, Swordslayer.
Thanks.

Terrific

tilence · 2012-05-24

Thanks for posting this script, it helped me out a bunch.

I'm sorry for my bad language :/

ibm · 2011-06-20

There is an idea, add a list of common names for the layers.
Example:
road
home
tree

With the ability to add and edit names.
selected layer (Layer01) and replaced with the desired (Home).

Good idea

Swordslayer · 2011-06-20

I've now added the possibility to configure frequently used values for the textfields (... > Configure...), so you can have Layer" and similar items predefined for the Find textbox and "Home" and others for the replace textbox (it works in Base Name, Prefix and Suffix textboxes as well).

If you want to get the name of the current layer, I'd suggest doubleclicking it and copying the desired part.

Great idea mate

igamaximus · 2011-07-08

I was thinking about same function few weeks ago, it is really helpful.
Thanks!

tassel · 2011-06-20

I like this one, similar to the rename objects dialog. Keep up the good work :D

br0t · 2011-06-20

Neat! But if I just want to rename a single layer, it should not be necessary to use the numbering so that the rename button is not greyed out. And personally I like to have a small "swap" button for a search&replace, so that I can fix any renaming done by it very quickly, if I accidently mistyped something.

Rename Single Layer

Swordslayer · 2011-06-20

Hi, to rename a single layer, just double-click it in the list. As for the swapping suggestion, that's a nice idea, thanks for that, I'll add it ASAP together with the other suggestions.

edit: swap action is now under the "…" button next to Find and Replace textboxes.