Saturday, January 08, 2005

Remove Material Assignments

When working with your scenes in Viz/Max at some point you may need to remove the material assignments for the objects in your scene. To accomplish this type the following into the maxscript listener:

Geometry.material = undefined



This will leave the materials that are defined in your material editor but remove the material assignment(s) for all the objects in your scene.

happy rendering...

16 comments:

OldVamp said...

Selection.material = undefined

beau turner said...
This post has been removed by a blog administrator.
beau turner said...

-- This will remove the material(s) from the selected geometry in the scene

$.material = undefined

Anonymous said...

thx man,..tz help a lot..
i was struggling wif tat prob b4..
n din found any tutorial of it..

YDABNEY said...

HOW DO i MAKE A BLUE MARBLE FLOOR, IN A SPACE W/72' CEILING HEIGHT, LOOK LIKE A MARBLE FLOOR?

YDABNEY said...

Help! If i have tried to "dull" my spot lights with reducing my multiplier by more than half- nothing is working. What do you think could possibly be the problem?

beau turner said...

ydabney,

For your marble there are a number of ways to do this, you may wish to start with a procedural texture.

For your questions, you may wish to post these to the Vizdepot (www.vizdepot.com) as we will be able to address your issues in more detail as this can be a lengthy item depending on a number of factors. :)

Anonymous said...

Thanks! This is the first result for "maxscript remove material" on Google...

Michael Bilodeau said...

I searched google for:
Remove Material 3DS Max
and it was exactly what I was looking for.

Beau Turner's is super useful!

Anonymous said...

thank you veyr much pal
rodrigo from Buenos Aires Argentina

beau turner said...

Looking back through this post and wanted to say thanks for the comments. I did a follow-up post at: http://rndr4food.blogspot.com/2005/01/remove-material-assignments-part-deux.html to help add another way, it basically uses the existing selection via the $ symbol and then sets that as undefined.

Cheers and happy rendering,
Beau

Freek said...

Lost count of how many times I had to remove materials and didn't know how to do it. Great tip, much appreciated !

Anonymous said...

Thanks, just what I needed :)

Anonymous said...

Thanks a lot

Anonymous said...

Thanks u and OldVamp

Roof Coating said...

That seems very helpful.. thanks for sharing.