Oh - I get it. Sorry, I just made the assumption that showing a python string in the example was good enough. Note - if the value of the python variable is already a string you don't need to cast it (put it inside the str() method).
- Code: Select all
indigo.variable.updateValue(1920763080, value=pythonVar)
Also, you might want to use unicode() rather than str() since it'll work with any extended characters as well. So:
- Code: Select all
myPythonString = u"éçø"
indigo.variable.updateValue(1920763080, value=unicode(myPythonString))
The above example is contrived since you know that myPythonString is already a unicode string - but if you're getting the data from somewhere else and it might contain unicode characters then it's safer to use unicode(myPythonString) since str(myPythonString) will throw an error.