Skip to content

Torre Alfina castle, Italy by caelisoft.

LiveStage: Using QTList to set text colors

Hey there:

I'm attempting to use SetTextColorFromQTList(start char, end char, color as list), but am getting an error that there are too many parameters. When I reduce it to just one, I get no errors... but I get no joy either.

The LSP manual doesn't explicate, and the QScript reference tells you to use the 3 parameters of your text's starting character, end character, and the QTList. I found Steve Israelson's example for setting text's drop shadow (cute), but it takes a differently formatted list and number of parameters.

The code I've currently got is below...

Ideas?

Thanks!

Patrick

TrackOfIndex(1).RemoveListElement("", 1, 1)
TrackOfIndex(1).AddListElement("", 1, "opColor")
TrackOfIndex(1).AddListElement("opColor", 1, "red")
TrackOfIndex(1).AddListElement("opColor", 1, "green")
TrackOfIndex(1).AddListElement("opColor", 1, "blue")
TrackOfIndex(1).SetListElement("opColor.red", 39321)
TrackOfIndex(1).SetListElement("opColor.green", 52428)
TrackOfIndex(1).SetListElement("opColor.blue", 0)
//The below line returns an error:
TrackNamed("text").SetTextColorFromQTList(0,0,TrackOfIndex(1).GetListElementValue("opColor"))
//The below line does nothing:
TrackNamed("text").SetTextColorFromQTList(TrackOfIndex(1).GetListElementValue("opColor"))
//

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Re: LiveStage: Using QTList to set text colors

bump

:)