macroScript MatteMyScene
category:"Allan McKay"
buttontext:"MatteMyScene"
tooltip:"Resets Material Editor and assigns matte shader to everything!!"
(
if querybox "To load our car smoke fx, we need to save your scene, hit 'YES' to save, 'NO' to cancel" == true then
	(
		for i in 1 to 24 do -- Reset Material Editor
			(
			meditmaterials[i] = StandardMaterial()
			)
			--useEnvironmentMap = off
			--environmentMap = undefined
			meditmaterials[1] = matteshadow applyatmosphere:on atmospheredepth:1
			$*.material = meditMaterials[1]
	)

)
