displaying a digital clock

157 views
Skip to first unread message

Daniel Charon

unread,
Oct 13, 2023, 2:24:41 PM10/13/23
to QLab
Hey everyone.

Does anyone know how to project a digital clock as part of a projection design? Something that displays the current time.

Thank you for any help anyone can offer.

Best,

Daniel

Daniel Charon

unread,
Oct 13, 2023, 2:25:02 PM10/13/23
to QLab
in QLab 5

Daniel Charon

unread,
Oct 13, 2023, 2:44:14 PM10/13/23
to QLab
I found an old thread and figured it out. Thank you.

micpool

unread,
Oct 14, 2023, 7:29:23 PM10/14/23
to QLab

tell application id "com.figure53.QLab.5" to tell front workspace

repeat

set the text of cue "TIME" to do shell script "date '+%H:%M:%S'"

delay 0.1

end repeat

end tell

Ron Ho

unread,
Oct 15, 2023, 12:06:42 AM10/15/23
to ql...@googlegroups.com
Just Curious:

What do the commands in QLAB look like in order to exec this script?

R

--
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/608f334b-d7d4-4634-8da2-1d26b92d22ecn%40googlegroups.com.

micpool

unread,
Oct 15, 2023, 5:42:24 AM10/15/23
to QLab
On Sunday, October 15, 2023 at 5:06:42 AM UTC+1 hor...@gmail.com wrote:

What do the commands in QLAB look like in order to exec this script?

On Sat, Oct 14, 2023 at 4:29 PM micpool <m...@micpool.com> wrote:

tell application id "com.figure53.QLab.5" to tell front workspace

repeat

set the text of cue "TIME" to do shell script "date '+%H:%M:%S'"

delay 0.1

end repeat

end tell



You just paste the script above into the script tab in the inspector of a  script cue.
Script cues require a QLab license.

You would probably put it in a timeline group with the text cue numbered “TIME” so that they could be  started and stopped together.

Mic

Chris Ashworth

unread,
Oct 15, 2023, 7:04:11 AM10/15/23
to ql...@googlegroups.com
I’d suggest one small adjustment to this script, which is to set the “live text” instead of the “text”.

This way, running the script cue will not mark the workspace document as edited, and won’t push changes on to the undo stack when changing the output of the text cue.

Ian MacColl

unread,
Oct 15, 2023, 8:41:06 AM10/15/23
to QLab
How does "delay 0.1" result in a 1 second delay?

Ian MacColl

unread,
Oct 15, 2023, 8:55:05 AM10/15/23
to QLab
D'oh...it doesn't, the output from the shell script doesn't change 🙄

micpool

unread,
Oct 15, 2023, 9:18:42 AM10/15/23
to QLab
Thats a 10Hz refresh rate.

You need a minimum of 2Hz,  i.e a 0.5 delay, but you would probably get slightly uneven seconds with that due to timing anomalies. 0.1 is a good figure for seconds,  if you only want hh:mm and the minute advance isn’t that critical,    delete :%S from the shell script, and set the delay to 1.

Mic

Reply all
Reply to author
Forward
0 new messages