Created
May 9, 2017 17:49
-
-
Save stevechap416/897a970f242beae82386f167cd5a4e32 to your computer and use it in GitHub Desktop.
Maxscript: Load a .mat and Apply it to Current Object
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn loadMat locationToLoad = ( | |
--Load material library. | |
loadMaterialLibrary locationToLoad | |
theStr = filenamefrompath (getMatLibFileName()) | |
theStr = trimRight theStr ".mat" | |
$.material = currentMaterialLibrary[theStr] | |
deleteItem currentMaterialLibrary 1 | |
) | |
loadMat "D:/test.mat" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment