Skip to content

Instantly share code, notes, and snippets.

@jaforsgren
Forked from stevechap416/save_mat.ms
Created June 16, 2017 06:51
Show Gist options
  • Save jaforsgren/5c4d3241a57b3e8b7c5f605772ea764f to your computer and use it in GitHub Desktop.
Save jaforsgren/5c4d3241a57b3e8b7c5f605772ea764f to your computer and use it in GitHub Desktop.
Maxscript: Save Current Object Material to a .mat
fn saveMat locationToSave = (
--Add current objects material to max's temp library.
append currentMaterialLibrary $.material
--Save that library to a location
saveMaterialLibrary locationToSave
--Clear that temp library
deleteItem currentMaterialLibrary 1
)
saveMat "D:/Test.mat"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment