Materials to Scene

3 votes
Version: 
v1.1
Date Updated: 
03/17/2016

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: 

Version Requirement: 
2010+
AttachmentSize
mats2scene_v1.ms8.85 KB
mats2scene_v1.1.ms9.11 KB

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
3dwannab's picture

No problem..

glad you learned something from it.

Riviera's picture

Very helpful, thank you.

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.

3dwannab's picture

It's blocked out in the

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.

d1myan's picture

Thank you!

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

3dwannab's picture

Open script and change: local

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

to your own user library of your choice.

d1myan's picture

No working to 3dsmax 2019

Hi! No working to 3dsmax 2019

AttachmentSize
screenshot_1222.png 5.34 KB
R Katzz's picture

Thank you, helped you

Thank you, helped you understand something in the materials.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.