Last active
August 29, 2015 14:07
-
-
Save ghiboz/7130eddc30871d159781 to your computer and use it in GitHub Desktop.
set ambient, diffuse e spec a 255 255 255
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
macroScript TestMaterial category:"ghiboz" | |
( | |
materialID = 1 | |
print '-------------------' | |
for materialID=1 to meditmaterials.count do | |
( | |
if (classof meditMaterials[materialID] == Standardmaterial) then | |
( | |
if (meditMaterials[materialID] != undefined) then | |
( | |
--print meditMaterials[materialID].name | |
meditMaterials[materialID].ambient = color 255 255 255 | |
meditMaterials[materialID].diffuse = color 255 255 255 | |
meditMaterials[materialID].specular = color 255 255 255 | |
) | |
) | |
if (classof meditMaterials[materialID] == Multimaterial) then | |
( | |
if (meditMaterials[materialID] != undefined) then | |
( | |
for element in meditMaterials[materialID].materialList do | |
( | |
if (element != undefined) then | |
( | |
--print element.name | |
element.ambient = color 255 255 255 | |
element.diffuse = color 255 255 255 | |
element.specular = color 255 255 255 | |
) | |
) | |
) | |
) | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment