facematerial manipulator in code

Solutionideas mod 7 years ago 0

FaceMaterial default's color is blue , I need to change facematerial color by C#

I coding...

main.FaceMaterial = Materials.Red

and try to set transparent

main.FaceMaterial = nothing

it's not happen anything. 'main' it still 'Blue'

Please help. How can I change this property?

and Thanks to all answer and suggestion.