Materials to Scene
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
Attachment | Size |
---|---|
mats2scene_v1.ms | 8.85 KB |
mats2scene_v1.1.ms | 9.11 KB |
Comments
No problem..
glad you learned something from it.
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.
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.Thank you!
Sorry! now see.
change patch:
Ver.1.1 - it still won't start, refers to line 29
Ver.1 - working
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.
No working to 3dsmax 2019
Hi! No working to 3dsmax 2019
Thank you, helped you
Thank you, helped you understand something in the materials.