Batch change text cues

296 views
Skip to first unread message

Igor Golyak

unread,
Jul 26, 2020, 4:35:06 PM7/26/20
to QLab
Hello the great QLab community!

I am sure this has been answered before, but is there a way to change the color of a bunch of text cues (the actual color of the text) as a batch? Maybe a script?
I may also need to change other parameters like font size.

Thank you in advance!

micpool

unread,
Jul 26, 2020, 5:01:13 PM7/26/20
to QLab
You were right in thinking the question had been answered before. If you had searched the group with "Change Text Color" ,This solution would have been the first result after your post.

Here it is again:


ttell application id "com.figure53.QLab.4" to tell front workspace

set theselected to (selected as list)

set theFormat to {rgbaColor:{red:1, green:0.5, blue:1, alpha:1}}

repeat with eachcue in theselected

set text format of eachcue to theFormat

end repeat

end tell



For completeness, theFormat is being set to a text format record, which is a list of all the properties that define the style of the text. So if you wanted to include a font and make it bold, white and 72 point you could have:

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 recordn

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)

There is lots of other useful stuff in the thread you may find useful



Mic

Igor Golyak

unread,
Jul 26, 2020, 5:03:59 PM7/26/20
to ql...@googlegroups.com
Thank you very much. I did try to search but came across a thread about setting cue color and not the text color. An oversight on my part! 

Thank you very much. I will try this.

--
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 a topic in the Google Groups "QLab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/qlab/EqGuyDAfMuo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to qlab+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qlab/ff463f02-5165-4249-a52d-450c9f46077do%40googlegroups.com.
--

Igor Golyak

Artistic Director | Arlekin Players Theatre

Associate Professor of Theater Boston Conservatory at Berklee 

(617) 319-6107 (cell)

 

New York Times Critics Pick

Like Arlekin Players Theatre on Facebook 

Follow @arlekinplayers on Instagram & Twitter 

 


Sam Kusnetz

unread,
Jul 27, 2020, 7:19:39 AM7/27/20
to ql...@googlegroups.com
Hello Igor

You can also set up one Text cue the way you want it, then copy that cue, select all your other Text cues, and use Paste Cue Properties to paste the parameters of the cue you copied.

Check out this page of QLab’s manual for more details:
https://qlab.app/docs/v4/tools/paste-cue-properties/

Best
Sam

––
Sam Kusnetz [he/him/his] (what is this?)
Figure 53
https://qlab.app | https://figure53.com
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/CACwih4LiwDj9orvgCACrjOXxvABg%3DeEFthCmqkzyttS6Zcp7MQ%40mail.gmail.com.

Igor Golyak

unread,
Aug 1, 2020, 6:09:16 PM8/1/20
to QLab
Thank you very much, Sam! This is great!

Igor Golyak

unread,
Aug 3, 2020, 10:26:16 PM8/3/20
to ql...@googlegroups.com
Hello Sam,

I have been working with what you have recommended but it seems like I cannot get some of the cues to remove shadow from the text. When I copy over the Q properties it does not seem to copy over whether or not the text has a shadow. Any idea how to resolve this?

I also have another question regarding the countdown timer on the Q lab website. It mostly works for me but what I’m trying to do is change the font size. Is this possible?

Thank you in advance for your help

micpool

unread,
Aug 4, 2020, 12:01:20 PM8/4/20
to QLab
On Tuesday, August 4, 2020 at 3:26:16 AM UTC+1 Igor Golyak wrote:
I also have another question regarding the countdown timer on the Q lab website. It mostly works for me but what I’m trying to do is change the font size. Is this possible?

The Countdown Timer uses 1 Text Cue numbered clock (Last cue in Last group cue). The text format of this cue  is over ridden by various network cues with OSC messages

You can set the text format of this cue including font size , colors, font,  etc. in the text tab of the inspector, in the usual way ( by selecting the text and using the panel buttons in the bottom left.)

For your change to stick you need to delete all the cues that change the text format of this cue.

Delete all network cues, except the first one.

Delete any cue that has a red x , that is not a group, (or the text cue, which will only have a red cross if it doesn't have a valid video surface)

Mic


micpool

unread,
Aug 4, 2020, 1:17:26 PM8/4/20
to QLab
On Tuesday, August 4, 2020 at 3:26:16 AM UTC+1 Igor Golyak wrote:
When I copy over the Q properties it does not seem to copy over whether or not the text has a shadow. 

As far as I know , the only way of copying the shadow properties is by pasting the actual  text with formatting, which means you will lose the text in the cue you want to paste the format to if it is different, which it probably is.

There are no documented hooks to set a drop shadow property by AppleScript or OSC.


Mic



Reply all
Reply to author
Forward
0 new messages