Posted by: Jeff | 2010/01/14

MaxScript: Clear/Delete all Materials

The first script I ever learned. Very simple, and yet extremely usefull.

$*.material = undefined

Running the script will simply clear out and/or delete all the materials assigned to objects in the scene. It doesn’t include maps and materials that are  assigned to button parameters like the Environment Map.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: