Open the object's settings and go to the "Model" section.
Is the "Use objects materials" box ticked.
If not turn this on.
If it is already then you will need to delve into the mirky depths of GDL scripting.
Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11