Modifying Rhino Material Issues

Hello everyone! Could you please help me check where the problem is in my code? Why does it reset the original parameter values in Rhino for Transparency and GlossFinish when I directly input the material name? What I want is not to modify the original parameter values in Rhino when Transparency and GlossFinish are not input.



Untitled.3dm (112.1 KB)
unnamed.gh (12.7 KB)