Hi,
Thank you for your enquiry.
SetColour(), SetFillColour() and SetLineColour() are all 04-specific script functions and cannot be used in Opus Pro 2.81 or Opus Pro XE 2.81.
To change the colour of text in 2.81, you will need to use the following script:
Code:
Text.SetSelection(0,-1) //selects all of the text in the object 'Text'
newstyle = new Object() //creates a new object named 'newstyle'
newstyle.colour = "FF0000" //sets the colour property of this new object to bright red
Text.SetSelectionStyle(newstyle) //sets the selected text to the same properties as the 'newstyle' object
As you can see, you will need to know the HTML code for your required text colour, rather than dealing in RGB values.
There are no equivalents of the SetFillColour() and SetLineColour() functions in version 2.81, so I'm afraid that you will not be able to directly modify the colour properties of a vector object at runtime.
I hope this helps. Please do not hesitate to contact me if you have any further queries.
Kind regards,