ScriptSpot

Script

Batch Material Editor

By NiK684 · Credited author: Nik · 2016-08-31

Version
1.9.1
Date updated
2022-02-20
Votes
16
Description

This script allows you batch edit multiple materials and bitmaps.

Additional Info

CHANGE LOG: ###################### v1.9.1 - New. RS_Material support. - New. RS_Bitmap support. ###################### v1.9 - New. CoronaPhysicalMtl support. ###################### v1.8.1 - New. VrayLightMtl support. - Fix. VrayMtl integer properties names and number limits. ###################### v1.8 - Fix. Corona Layered Material layers didn't work. - Fix. CoronaMtl mediaMode added. ###################### v1.7.9 - Fix. It was a bad idea to fill list with compatible shaders only. Now list contains all supported shaders if renderer is installed. - Fix. Error when last operation was "Clear map slot" and checkbox was enabled. ###################### v1.7.8 - New. Script will use shaders and maps that compatible with current renderer. For example VRayHDRI even in Corona. - Fix. Renderer identification system is removed. All related errors should be fixed. - Fix. Mode radiobuttons last state was broken. ###################### v1.7.7 - New. Last used settings now saved in .ini file and works between 3dsMax sessions. - Fix. Exclude by reflect ior FStorm didn't work. ###################### v1.7.6 - Fix. Default X position now 200px instead of 1500px, for people who have small resolution screen. - Fix. Error when current renderer is not supported. ###################### v1.7.5 - New. Partly VRayHDRI map support. ###################### v1.7.4 - New. FStorm material and bitmaps support. - New. Shaders list will contain only shaders available in current render engine. - Changed. Small changes in Exclude rollout. - Changed. ms file is removed. You can comment first line of script to use it like .ms - Changed. Script is now called "Batch Material Editor" without "Corona". - Changed. Script is now only on ScriptSpot. - Changed. Macro Category was changed to "Nik Scripts". ###################### v1.7.2 - Fix. Maps mode didn't work. ###################### v1.7.1 - Changed. GO button disabling behaviour. - Changed. UI disabling behaviour. - Fix. Clear map slot. - Fix. Previous mode. ###################### v1.7 - New. Medit selection material mode (Read Help) - New. Medit selection map mode (Read Help) - New. Help on forum and Help button in UI - New. Message string for errors and summary info - New. GO button will be disabled when properties selection is invalid - New. Dialog will save Position, Mode and Filter in current 3dsMax session - Changed. Ignore materials renamed to Exclude materials - Changed. New intuitive UI in Exclude materials - Changed. Bitmaps UI is not locked by default - Changed. Bitmaps switches automatically enabled when property is modified - Changed. Now randomized value can't be more or less than valid value ###################### v1.6 - New. Randomization of any float and color values. - New. Size, offset, angle parameters for Bitmaps and CoronaBitmaps. - New. Clear all maps in selected parameters (map slots). You can undo that ###################### v1.5 - New. Ignore materials by some properties. Works with CoronaMtl and VrayMtl. ###################### v1.4 - New. Properties now sorted by class and name. Class is visible in list. - New. You can filter them via filter class presets buttons or/and by name. - New. Now you can select multiple properties IF all of them share similar output values. - New. Bitmap and Coronabitmap properties. - Changed. Code optimisation. ###################### v1.35 - Changed. "All materials" and "Selected materials" buttons that starts changing property will be disabled when list is empty (if search is invalid). - Fix. Error caused by invalid search. - Changed. Code optimisation. ###################### v1.3 - New. Adaptive dialog height. - Fix. Some bugs. - Changed. Code optimisation. ###################### before 1.3 changelog is lost
Attachments

Tags: Material, batch

Comments (40)

l1r1m · 2025-08-05

I dont think you can edit multi-materials as your scripts does. It is more of a selection tool based on a lot of criterias.

l1r1m · 2025-08-05

I dont think you can edit multi-materials as your scripts does. It is more of a selection tool based on a lot of criterias.

NiK684 · 2025-08-05

As far as I understand this script can edit any material/map values. Would be better to ask the author ofc.

l1r1m · 2025-08-20

I just purchased the scripts and its doesnt have those options. Its more of a charged up selection tool than of a material editor.

Any chance to update batchME

l1r1m · 2025-08-04

Any chance to have batchME 2.0,man I am happy to pay you for that script, I use it everday, Its such a live save one you adapt it in your workflow, do a gumroad listing maybe.

Thank you so much for sharing this script and a lot of other scripts for free.

Much love <3

Corona Clear map slot error

dxiaman · 2024-06-14

I love your script. its really useful.

Can I also request support of Physical Material and Legacy material - ( we do a lot of export to other software and some only support physical and legacy material.)
Corona
I also like to report that clear map slot for Corona Physical and Legacy shows a runtime error --line number; 668
Vray clear map works but I cannot select multiple map channel slots in at one time. i have to select by batches.

Anyway awesome work and sharing to the community mate!

Max 2022 Physical Material

HalukOzkul · 2022-03-17

Hi Nick,

Any chance you can include editing 3ds Max native Physical Materials?

Cheers

NiK684 · 2024-05-03

Version 2.0 is in development. Every possible material and map will be there.
Release date - when it's done...

UPD. Development was cancelled

Video Tutorial

vfga10 · 2021-11-23

Amazing script!! is there any video to see all the settings and know how to take all the advantages of having this script. There are many things I am a bit lost of how to use it. Thanks

So thank you

sedus69 · 2021-10-04

you're the best

Batch medit for Corona7 Physical material?

mogamma · 2021-08-30

Hi Nik,

Firstly, your script is fantastic. We use it on every project that comes through the studio. So thank you :)
Unfortunately the new release of Corona (7) has thrown a curve ball with the new CoronaPhysical material. Do you have any plans to incorporate this into your script? Or is your work on the script on the backburner at the moment?

Thanks
Pete

1rv · 2021-05-17

Nik, I can't find an option (in Vray mat) to switch between glossiness-roughness in BRDF section.
Could it be added please?

glossiness-roughness

NiK684 · 2021-09-25

"I can't find an option (in Vray mat) to switch between glossiness-roughness in BRDF section."
Bool - brdf_useRoughness

"Batch medit for Corona7 Physical material?"
Added in v1.9

Legend

mogamma · 2021-09-29

Thank you!!

Legend

mogamma · 2021-09-29

Thank you!!

kino_unico · 2021-05-14

Would it be possible to work on a library of materials file?

NiK684 · 2021-05-14

Unfortunately I don't have much time to update this script.

map slot swapping?

Darran · 2019-11-29

for render to texture, it would be nice to batch swap maps from channel to channel. Mostly I need this for making atlas map page with PBR materials, and only the diffuse channel does a un-modified transfer from one uvw channel to another. If I could batch swap different channels, say specular level or normal, or metalness (IOR) map slots, with diffuse map slot it could solve a lot of problems and save a lot of time. Texture bakers are more for movie stuff or high to low poly stuff than texture atlas'ing stuff, this would help make render to texture useful for texture atlas creation in max.

MapChannel is there

NiK684 · 2019-11-29

I don't quite understand. Map Channel is implemented for bitmaps.

I'm not familiar with this workflow. Why do you need to swap Channel from one slots to another? Why you can't just assign some Channel do reflect, ior etc.?

You see, it would be a feature for very specific task because Diffuse slot can contain different maps with different Channels, as well as other map slots. So in Diffuse slot I could get Channels 1,2,4,6 (in some Composite map) and in Specular I could get 2 and 7. What needs to be swapped with what?

Thank You Jesus!

vfxmonster · 2019-11-21

Had to write a review because this script works so well. Currently we're working in a massive city scene with elements coming in from all sorts of sources. We decided to globally move to using the Vray Camera Exposure but now had 1 section of the city that required 480 materials to have their "compensate camera exposure" turned on and the Self Illum multipler reduced. Would have taken a full day to do it manually, with the script it was done in seconds. Thank you for saving me from a day of tedious button clicking.

Only request right now is to also add the VRay Light Material.

Thank you again

Done

NiK684 · 2019-11-25

"Only request right now is to also add the VRay Light Material."
Easy.

no more available ?

Naxos · 2019-08-07

Hello,
Can someone repost this script, please ?
The original link is dead.

Regards.

NiK684 · 2019-08-07

Link is fixed

Change 2000 mats

Digiwip · 2019-08-28

Thx for your work dear NIK !
sorry to ask but i have this problematic on a project :
I need to change 2000 mats to remove specular and change reflection on a standard max mat ... Do you think that theres a way to go through that using your great script ?
Best regards

NiK684 · 2019-08-28

There is no Standart mtl in this version but I can help you if you tell me what properties you need to change and where are these materials (on objects, in mtl library etc.)

Digiwip · 2019-08-29

Hey nik ! thx for the answer, In fact i have a huge geographic site divide in 2000 squares, each one is textured and have a default max standard material. My problem is they all have ambient and specular and i want to put it to black. i was wondering if i could convert all to vray mat and go back to see if it could erase these properties.
I'm looking for a solution with scripts but at this moment i didnt found any solution ...
TY

NiK684 · 2019-08-29

(getclassinstances standard).ambient = black
(getclassinstances standard).diffuse = black
(getclassinstances standard).specular = black

These 3 commands will change properties of ALL Standard materials in scene. I suppose it's easiest method for you.

You can also use MacroRedorder (in listener [F11]) to find properties that you want.
Enable recorder, change some property, get property name and disable recorder.

Digiwip · 2019-09-01

TYVM NIK you just saved me ! i feel like a noob discovering these kind of functions :)
I guess you can change anything like the specular level and all parameters ... its Wonderfull Thx again !

How do I use this?

RiZe · 2019-03-05

Created an account just to reply. Hi there, I installed this so I can change every material opacity settings, in my 2000+ object max scene, in mono channel output from RGB Intensity to Aplha (does this script even do that?). Opening the script opens the little window fine but it shows the material properties and randomise drop downs only and there is no materials for me to edit, everything is blank. How do I use this? Thanks.

mono channel output

NiK684 · 2019-03-08

Hi. This script is mainly for editing materials, not maps. Not all bitmap properties are implemented. I'm too busy at this moment to make a new version.

You can't do that with this script, but here is the string that will set "mono channel output > alpha" to ALL bitmaps in scene:
(getclassinstances bitmaptexture).monooutput = 1

Just put it in listener and hit Enter. You can undo this operation.

Great Script

Jamie Murphy · 2018-11-26

I use this daily with Fstorm, it's great.
I would love the ability to copy map connection from diffuse to translucency and add a colour correction node with access to the adjustments.
Thank you.

Materials:0 Maps: 0

mykita · 2018-11-22

Hi,
it says "Materials: 0 Maps:0" even though I have selected my materials and hit "GO". What am I dong wrong?

Nguyễn Văn Thành · 2018-07-30

Error (429)
This link is temporarily disabled. The person who shared it hit their daily limit of traffic or downloads. Learn about traffic limits.

NiK684 · 2018-08-02

429 it's not only about traffic. This time I was banned because I shared crack file via piblic link :) My mistake. I'm waiting for support answer.

Hey Nik put that file somewhere else, please!

slavonec · 2018-07-26

Error (429)
This link is temporarily disabled. The person who shared it hit their daily limit of traffic or downloads. Learn about traffic limits.

That is the message I get when I try to download the script.

Can you move it somewhere without download limits, please?

Thank you in advance

Slavi

finalRender

igamaximus · 2018-07-29

Nik, could you please add finalRender support if i send you MXS property names of relevant materials?

Thank you

Brilliant

garretthoyos · 2017-08-03

Thank you - this script is awesome.

1. Run Script
2. Customize User Interface
3. Toolbar > Categories dropdown > look for Nik
4. Click and drag "batch materials" to your toolbar.

I'm using it for editing multiple bitmaps, works flawlessly so far.

NiK684 · 2017-08-04

Thx

Thanks for sharing !

NicolasC · 2016-09-01

Obviously a useful tool for daily work :) thanks !