I can't seem to come up with a script to change the color of the text in a text cue. Any help would be greatly appreciated!
Thank you !
tell application id "com.figure53.QLab.4" to tell front workspace
set theCue to cue "1"
set theFormat to {rgbaColor:{red:0.3, green:1, blue:1, alpha:1}}
set text format of theCue to theFormat
end tell
Aaaand that workspace I mentioned... :)-b
--
Contact support anytime: sup...@figure53.com
Follow QLab on Twitter: https://twitter.com/QLabApp
User Group Code of Conduct: https://qlab.app/code-of-conduct/
---
You received this message because you are subscribed to the Google Groups "QLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qlab+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qlab/bcd133b5-ebe0-4741-9b53-93980a7135ff%40googlegroups.com.
tell application id "com.figure53.QLab.4" to tell front workspace
set theCues to cues whose q type is "text"
set theFormat to {rgbaColor:{red:1, green:0.5, blue:1, alpha:1}}
repeat with eachcue in theCues
set text format of eachcue to theFormat
end repeat
end tell
If you wanted to adapt Brent's script to affect all text cues it would betell application id "com.figure53.QLab.4" to tell front workspace
set theCues to cues whose q type is "text"
set theFormat to {rgbaColor:{red:1, green:0.5, blue:1, alpha:1}}
repeat with eachcue in theCues
set text format of eachcue to theFormat
end repeat
end tell
set theFormat to {fontFamily:"Courier", fontStyle:"Bold", fontSize:72, rgbaColor:{red:1, green:1, blue:1, alpha:1}}
Here's all the properties you can include:
tetext format record n
properties
fontFamily (text) : The font family for this format. (e.g. "Helvetica", "Courier New")
fontStyle (text) : The font style (face) for this format. (e.g. "Regular", "Light Oblique")
fontName (text) : The font name for this format. (e.g. "CourierNewPS-BoldItalicMT")
fontSize (real) : The font size for this format.
lineSpacing (real) : The line spacing for this format.
rgbaColor (rgba color record) : An RGBA color record representing the percentage values for the red, green, blue, and alpha components of the text color of this format.
rgbaBackgroundColor (rgba color record) : An RGBA color record representing the percentage values for the red, green, blue, and alpha components of the background color of this format.
strikethroughStyle (text) : The strikethrough style of this format. Possible values are "none", "single", and "double".
strikethroughRgbaColor (rgba color record) : An RGBA color record representing the percentage values for the red, green, blue, and alpha components of the strikethrough color of this format.
underlineStyle (text) : The underline style of this format. Possible values are "none", "single", and "double".
underlineRgbaColor (rgba color record) : An RGBA color record representing the percentage values for the red, green, blue, and alpha components of the underline color of this format.
range (range record) : A range record representing the index and length for the substring that has this format.
wordIndex (integer) : An optional 1-indexed word number to which this format should be applied. When used, the "range" property will be ignored. (setting only)