I have a simple line of code that I use to set the material for my concrete wall:
myWall.material = Sketchup.active_model.materials[“ConcreteWall_01_18”]
I went through what I think is the normal import process to import this material. The material looks good and I use it all the time. The problem is, I have to use the material once through the UI (using the paint bucket) before my line of code works. Otherwise myWall is just white. But after using the UI, that line of code works forever in that model.
Once I create a new model, I have to use the UI again.
How can I get this line of code to work without having to use the paint bucket first?