Change materials on Panels with Python

i Write a Pyhton Script that change the materials on panels but whenever i run the script he give me the same Result and it should change maybe every time i hit run

With so few information is it hard to say what is wrong. Anyway, it is always a good idea to include as many information and material as possible. This includes you graph file and if you have code you want help for, then include it as formatted text in the post. By doing this those who can help you they dont need to reinvent the wheel.

1 Like

Sounds like the graph isn’t refreshing - try running with Dynamo Player or using another refresh method.

1 Like

However, try to see if this helps you…

Home2.dyn (10.5 KB)

2 Likes

Thank you for your help and your time appreciated