-I thought there was no way to access a local variable’s value, but it turns out it was just to easy and I was wrong.
What extension are you using? Have you tried to just enter the variable name in the colour parameter?
edited the tittle, thanks, I made a mistake, that extension is one of Entropy’s 3D extensions, it allows to modify the materials of 3D models.