ScriptSpot

Script

Interactive Universal Renamer

By br0t · 2012-09-26

Date updated
2013-12-28
Votes
17
Download
Download
Description

NEW VERSION: Asset Paths + Sorting + Filtering + Multiselection

Make sure to select items in the list to see the renaming preview and do the actual renaming!

I guess every person dealing with rigging and MAXScript has to write a renaming script once in his life. I have tested at least half a dozen existing ones before I wrote my own. A key thing that is different from other similar scripts is the ability to see your name changes instantly while you type, giving it an interactive "text editor" feeling. A useful tool for maintaining name conventions in a complex Rig or scene, as well as quick file renaming, e.g. for numbering image sequences for import to Adobe Flash etc. Hope you like it!

28/12/13:   Rewritten again to better separate model and functionality. New features include: Asset Paths can be renamed, Names can be filtered and sorted, only selected items in the list are renamed.

25/01/13: Replaced the edittext field with a dotNet textbox with autocompletion (thanks to Nick Moutafis)

19/01/13: Now finds all materials in scene and nested materials on selected objects, Shows No. of items in list, remembers last file path, fancy header image, Supported nested material types atm: Multimaterial, Blend, Shell, Compositematerial, Shellac, DoubleSided, VRay2SidedMtl, VRayBlendMtl, VRayMtlWrapper, VRayOverrideMtl

18/01/13: Rewrote almost everything, dumped most custom GUI elements, too much hassle when things change, Added layers and materials, added scene/selection option for objects and materials, Added quick single renaming tool by doubleclicking an item in the list, Now only renames when name changed

23/09/12: GUI stuff, MZP installer 20/09/12: Some bug fixes, implemented s&r "All occurences" option  

Installation is easy: Just drag & drop the .mzp onto your 3ds Max viewport (or use MAXScript -> Run Script) and add the macro script (category: Buelter) to a menu/toolbar/quadmenu/shortcut afterwards. Cheers

Tags: Material, Bone, selection, file, rename, batch, Rig, quick, layer, scene, directory, pipeline, helper, name, node, system, point, renaming

Comments (29)

help with installation?

Bluerose · 2020-05-05

Hi I have used the awesome script in the past but had to update to WIndows 10 so I am trying to get this working again.

The instructions on this site say: "Installation is easy: Just drag & drop the .mzp onto your 3ds Max viewport (or use MAXScript -> Run Script) and add the macro script (category: Buelter) to a menu/toolbar/quadmenu/shortcut afterwards.Cheers"

but I dont see and .mzp file in teh GitHub distributions. Here is what is included for scripts:

Buelter-interactiveRenamer_macro.mcr
interactiveRenamer.ms
interactiveRenamer_installed.ms
nameplates.ms

The interactiveRenamer_installed.ms seemd to work fine to get this installed as the pop up window said 'installed' but the next part it says to go to 'Customize User Interface' and go to the 'Buelter Category' but I do not see any category in 3ds Max 2017 (same version I was running before).

Can someone please clarify this?

guitarist2903 · 2020-07-26

Think I figured out the install. From GIT I downloaded all the files.

Buelter-interactiveRenamer_macro.mcr goes in :C/Programfiles/Autodesk/3dsmax2###/MacroScripts

the other 3 .ms files need to go into :C:\Users\username\AppData\Local\Autodesk\3dsMax\2### - 64bit\ENU\scripts\interactiveRenamer

After that I ran the .mcr script and was able to find it in the list for selection to add to toolbars.

Attachments

3dwannab · 2016-06-10

Corona Material Support? Would be greatly appreciated. Thanks.

 

Scrap that. it works.. Silly me needed to select scene radio button..

jpjapers · 2015-03-03

This script seems to crash max on files with a large amount of textures and if it does unfreeze it actually hasnt renamed any of the paths (in asset mode).
Im on max 2014 and it has worked for small scenes but sometimes even they dont actually rename.
Any ideas?
Thanks

bitmap renamer

kesarashish · 2014-07-08

i want something which reduces the length of the bitmap name automatically.... please do reply soon

hm

rachka · 2014-04-07

When attempting to rename materials in the scene this shows up:

MAXScript Rollout Handler Exception
--Unknown property: "coatmtl" in undefined

VRayBlendMtl :
(
getNestedMaterialsRecursive theMat.baseMtl arr
for m in a.coatMtl do
getNestedMaterialsRecursive m arr
)

br0t · 2014-04-16

Hey thanks for pointing that out, I fixed the typo and uploaded the new version.

hm

rachka · 2014-04-07

When attempting to rename materials in the scene this shows up:

MAXScript Rollout Handler Exception
--Unknown property: "coatmtl" in undefined

VRayBlendMtl :
(
getNestedMaterialsRecursive theMat.baseMtl arr
for m in a.coatMtl do
getNestedMaterialsRecursive m arr
)

themaxxer · 2013-12-04

nice script but when you rename files (maps) they aren't reassigned again, so you loose the link to them, is this useful? if the script would relink the maps after renaming, then it's very powerful. or do I miss something?

thanks for your effort.

best regards
themaxxer

br0t · 2013-12-28

The script is not meant for relinking anything, just for batch renaming many objects/layers/etc. You can do sort of a relink by renaming both files and asset paths, but there are other and better scripts for that already.

roamn · 2013-11-23

The renaming of the files doesnt seem to work :-(, any idea why?

br0t · 2013-11-24

It's working fine for me, so I can only guess. The script uses a DOS command to do the renaming, so maybe it has problems with your filenames. The command goes like this:

rename "fullFilePathAndName" "newFileName"

e.g.

rename "C:\User\Christoph\Desktop\myFile.jpg" "RENDER_myFile_001.jpg"

You could try to manually test this in your windows cmd.exe (don't forget the quotation marks for filepaths that include spaces) with one of the files that the script fails to rename.

br0t · 2013-09-24

Hey guys, thanks for the kind words. I still do have plans to update the script. I started rewriting it completely and that would make adding asset path renaming pretty simple but this will not happen in the next weeks as I am finishing my studies and have no time for nothing else.

I am pretty sure there are other scripts here to rename bitmap paths in 3ds Max, just give it a good search here on scriptspot.

NicolasC · 2013-09-24

Hello,
This tool is really great ... BUT there is one BIG problem in my opinion: renaming bitmaps works great, but the renamed bitmaps aren't replaced in materials !! or am I missing something ?? that would be simply awesome, because we've been given a scene to modify to do an animation (using an online renderfarm, that has some bitmaps naming constraints, like no spaces or special characters in names like "é" or so) ... so we have to change bitmaps names and edit materials to use the renamed bitmaps ;) could you please help us solving this issue ? thanks a lot :)

Bitmaps path functions

caogaiyu · 2013-09-19

Hi,my currently work with my project use your script and it works great,but I was wondering is that possible to add a function in the script to rename the bimaps path

Like I have thess 4 bitmap files in scene
l_gg02_wall001.png
l_gg02_wall002.png
l_gg02_wall003.png
l_gg02_wall004.png
And I have change them to
l_gg03_wall001.png
l_gg03_wall002.png
l_gg03_wall003.png
l_gg03_wall004.png
instead to manually reassign them can i just simplely do a search and replace

Rename selected layers

Royal Ghost · 2013-02-12

Good script! If understand correctly no way to rename only selected layers? If it is correct can you please add this feature to your script?

I second this request !

tuxmask75 · 2013-02-12

Great script !
But it needs a rename multiple selected layers feature!

And maybe also:
A rename all objects within the layer being renamed to whatever the layer name is. (a check box would work nice here)
And! ! ! Rename layer by selected model's name button.
I think these features would add lots more time saving to our workflows.

P.S. Love the script man !

br0t · 2013-02-18

thanks to both of you. I am definitely planning to add the option for only renaming selected layers, I am just quite busy at the moment.

@tuxmask75: Nice suggestions, however I'd like to keep the script general and not too specific for one of the renaming modes, adding too many buttons etc. if it only saves one or two clicks. But I will give it a try

br0t · 2013-12-28

---

tassel · 2013-01-20

Thank you brot, this is a handy tool for people who work with typical CAD scenes with many objects and lots'a layers. +1

br0t · 2013-01-21

You're welcome ;)

br0t · 2012-10-19

Glad you like it! I agree it would be great to have one renamer for everything, adding e.g. layers, materials, bitmap paths etc. and it is on my to-do list

layer renamer

bronius · 2012-10-10

Sometimes is many layers in MAX. Would be nice to have multiple layers renamer.

cool, like it...

caogaiyu · 2012-10-10

if you could add in the rename fn to material it will be perfect, so after change the bitmap file name i can change the bitmap path to the correct one directly.

asymptote · 2012-10-09

Superb, like "Better File Renamer" but in Max.

thx

+1

barigazy · 2012-09-26

No comment, just niceee.:)