Controlling Instance Materials With Custom Properties in Blender
Here's a little tip about using custom properties to control materials:[...] One slight oddity, which I feel I should go over again, as it's only briefly mentioned in the video, is why the original cube (not the instance) goes black when the attribute node is connected. The attribute node is set to look on the instancer for the custom property. The cube, not being the instancer, doesn't have the custom property and so, confusingly in my opinion, the attribute node just returns black. You then end up with the odd situation where you can only view if the material is working by looking at the instance of those objects.