Material of geometry set might be forced to inherit its node's material.
When you are assigning the material, you are getting two inline references. That may or may not work, so consider getting the geo set first in a variable, and then assigning it a material.
third point refers to known issue in scripts. in your case, everything thing is fine, so you do not need make a change. sometimes when do something like this vcComponent.getProperty(“Example”).OnChanged = test
it might not work, so you first need to get the property in one variable, i.e. its own line in script, and then assign the event handler.
I tried to change material by same way, but I was not successful, even I am not able to change material at Block feature - (Python script in component which is in file in attachment). Interesting to know what I am doing wrong…
thank you for quick response. I try to add comp.rebuild, but any result (layout attached). I noticed, that when I closed my layout and open it in Visual Components again , then material is changed. But I would like to change it during run of simulation.