I am trying to make a cabinet dynamic component with two material settings: either it is painted white or it has a wood grain texture. If the wood grain texture is applied, the cabinet should generate two grains-- horizontal on the rail components and vertical on the stile components.
I have inserted a small group with a sample of each material (white, horizontal grain, vertical grain) into the model. My plan was to go individually into each nested component and set the material as a logic function. Something like =if(cabinet!woodmaterial=wood,vertical grain,white) so that I can assign each part as either horizontal or vertical that way. However, I keep getting an error that the material is not in the model despite it working if I just type in “vertical grain” for the material. Is there a workaround for this? Thank you.