I have an object with an instance variable which is a number. I need to set it to a value which is obtained from combining two strings together.
The first string is obtained by checking another instance variable in the object, called "owner". The variable "owner" in this case is set to "FRA".
The second string is just called "_hue_red".
So by combining "FRA" and "_hue_red" I should get "FRA_hue_red", which is the name of a global variable. However, it just ends up as a string and it doesn't get converted into a number.
The problem here is that I can't figure out how to convert it into a number. I've looked around google but I couldn't figure it out from there either.
I tried using integers like this: int(object.owner & "_hue_red") but it didn't work.
I probably explained my question pretty poorly, but that's mostly because I suck at explaining things. Thanks in advance.