Skip to content

Instantly share code, notes, and snippets.

@ghiboz
Last active August 29, 2015 14:07
Show Gist options
  • Save ghiboz/7130eddc30871d159781 to your computer and use it in GitHub Desktop.
Save ghiboz/7130eddc30871d159781 to your computer and use it in GitHub Desktop.
set ambient, diffuse e spec a 255 255 255
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