Home Technical Talk

3dsmax script to export a material (and collect maps in certain folder)

interpolator
Offline / Send Message
OccultMonk interpolator
I know there are 3dsmax script for collecting maps/textures, or finding missing maps/textures. If anyone knows a script that does something like described below, that would be great. But what I would like specifically is:

1) select a certain material to export (one or more)
2) determine the material library to add the material to.
3) Use the script to export the material
    3.1 The script asks for the name of the material
    3.2 The scripts asks for the target location for the maps or creates a new folder for each material (with the name of the material)
    3.3 The script collects the textures and places them in a specified location in seperate folder for each material.
    3.4 The material gets added to the material library.
 

Folder structure:

Material_LIB_Metal (Folder)                    - Main folder for Metal Material Libraries
-----Material_LIB_Metal_01 (File)             - The material Library file (containing Material_Metal_A01 and Material_Metal_A02)
-----Material_LIB_Metal_01 (Folder)        - Contains the subfolders (with the textures) for each material
------------Material_Metal_A01 (Folder)    - Folder for each material containing textures used by that material
------------------Texture_01.tga
------------------Texture_02.tga
------------------Texture_07.tga
------------Material_Metal_A02 (Folder)
------------------Texture_05.tga
------------------Texture_02.tga

-----Material_LIB_Metal_02 (File)     
-----Material_LIB_Metal_02 (Folder)
------------Material_Metal_B01 (Folder)
------------------Texture_08.tga
Sign In or Register to comment.