ScriptSpot

Script

Materials to Scene

By 3dwannab · 2016-01-25

Version
v1.1
Version requirement
2010+
Date updated
2016-03-17
Votes
3
Description

Straight forward script to load a directory of your choice or by recursively going through a single directory (be careful it doesn't go through too many as this will be slow to load) and loading up .mat files.

From here the script will apply Materials only (no maps) to teapots.

I use this to quickly populate the scene with all materials inside a .mat file to tweak and update it quicker.

See screenshot.

Can be found under the category: 3dwannab

Open script and change:
local intialMLPath = "F:\SS_3diT\Textures & Materials\Corona"

to your own user library of your choice.

CHG LOG:
v1.0 - 2016.01.25 - Initial Release
v1.1 - 2016.03.17 - Fix bug if intial path not found

Additional Info

Attachments

Tags: Material, materials, .mat, load .mat, Organise Materials

Comments (7)

Very helpful, thank you.

Riviera · 2020-05-13

I'm changing my material library from storing multiple materials in a .mat file to store only one(Connecter). Your script saved a lot of time, and I also learned from it.(maxscript beginner)

Thank you.

No problem..

3dwannab · 2020-05-13

glad you learned something from it.

No working to 3dsmax 2019

d1myan · 2019-05-08

Hi! No working to 3dsmax 2019

Attachments

3dwannab · 2019-05-08

Open script and change:
local intialMLPath = "F:\SS_3diT\Textures & Materials\Corona"

to your own user library of your choice.

Thank you!

d1myan · 2019-05-08

Sorry! now see.
change patch:
Ver.1.1 - it still won't start, refers to line 29
Ver.1 - working

3dwannab · 2019-05-08

It's blocked out in the script. You must remove the two hyphens at the start of the line.

-- local intialMLPath = "F:\\SS_3diT\\Textures & Materials\\Corona"

to

local intialMLPath = "F:\\SS_3diT\\Textures & Materials\\Corona"

!! Make sure you place two

\\

at each directory change.

R Katzz · 2016-04-12

Thank you, helped you understand something in the materials.