Hi,
Thank you for your enquiry.
To change the contents of a text object, you first need to select its contents using the SetSelection() function. For example, the following script will select the entire contents of a text object named 'Text':
Code:
Text.SetSelection(0,-1)
Once selected, you simply need to use the ReplaceSelection() function to insert the required string or variable into the object. For example:
Code:
Text.ReplaceSelection("This is my text")
The text object named 'Text' should now display
This is my text.
Kind regards,
Kind regards,