Resistor Color code calculator

it does. but it only works when it is a scene variable instead of an object variable

Just to extend on what @jack suggested, can you put 2 extra text objects on the scene, temporary ones for debugging, so they’ll be removed once this problem is solved…

Write the value of band1 to one of the text objects, and the values of band2 to the other. Then let us know what text is in the text objects (and a screen shot is fine too)