Countdown Timer help

324 views
Skip to first unread message

Jim Suttie

unread,
Jul 19, 2017, 7:22:48 PM7/19/17
to QLab
I am looking to setup a countdown timer to display on top of a video loop.

I am fairly comfortable using QLab but have no knowledge of using OSC or Applescripts.

Searching through this group micpool posted a workspace "countdown titles.cues”  on 1 July 2015 that seems to do what I am looking for and works in QLab 3.

How can I get this workspace to work in QLab 4?

When I run the workspace it I get the dreaded red X, and it gives me the error message AppleScript error: can’t get length of “1”

I would appreciate any help with this. Thanks.

Alexander Taylor (Mailing List)

unread,
Jul 19, 2017, 8:56:45 PM7/19/17
to ql...@googlegroups.com
I have a countdown timer working, though in v3.  Going to be starting the conversion in the next few weeks, though it’s simple enough I don’t see why it wouldn’t work in v4.  Note I tend to use other methods to send OSC into QLab, avoiding AppleScript as much as possible.  I know there are people on here that swear by it, but I’ve never had good luck with it.  I’d be happy to explain how I’m doing it with Python and OSC if anyone’s interested.

Alexander

--
Contact support anytime: sup...@figure53.com
Follow Figure 53 on Twitter: http://twitter.com/Figure53
---
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/25f8522e-9e76-4729-892e-5acc96557b52%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Nigel Hogg

unread,
Jul 20, 2017, 3:34:19 AM7/20/17
to QLab
Hi Jim,

I notice Mic has just updated his cookbook for v4 - might be worth another look.

micpool

unread,
Jul 20, 2017, 4:50:50 AM7/20/17
to QLab
Well that's interesting.   I could see  no obvious reason why that script wouldn't work in QLab4, but you are right, it doesn't

This works in QLab 3

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

set q name of cue "h" to (length of "10") as text

end tell


This doesn't work in QLab4


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

set q name of cue "h" to (length of "10") as text

end tell


however, this works in both 3 and 4

set q name of cue "h" to (count characters of "1") as text


Use this script instead

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

set countdown to q name of cue "VAR"

if countdown is not "-1" then

set totalSeconds to countdown

set countdown to countdown - 1

set q name of cue "VAR" to countdown

set theHours to (totalSeconds div 3600)

set theRemainderSeconds to (totalSeconds mod 3600)

set theMinutes to (theRemainderSeconds div 60)

set theRemainderSeconds to (theRemainderSeconds mod 60)

if (count characters of (theHours as text)) = 1 then

set theHours to "0" & (theHours as text)

end if

if (count characters of (theMinutes as text)) = 1 then

set theMinutes to "0" & (theMinutes as text)

end if

if (count characters of (theRemainderSeconds as text)) = 1 then

set theRemainderSeconds to "0" & (theRemainderSeconds as text)

end if

set theTimeString to theHours & ":" & theMinutes & ":" & theRemainderSeconds as text

set thecustommessage to "/cue/TIME/text \" " & theTimeString & "\""

set the custom message of cue "OSC" to thecustommessage

end if

end tell


QLab4  workspace  attached.



Mic


countdown titles.qlab4

Rich Walsh

unread,
Jul 20, 2017, 5:01:11 AM7/20/17
to ql...@googlegroups.com
It might be related to the bugs in this thread: https://groups.google.com/d/topic/qlab/V_ky3NAo5iU/discussion. It throws -1728 (errAENoSuchObject), a run-time resolution error. QLab 4.1.1 can’t handle the AS property “length”.

Rich

--
Contact support anytime: sup...@figure53.com
Follow Figure 53 on Twitter: http://twitter.com/Figure53
---
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.

For more options, visit https://groups.google.com/d/optout.
<countdown titles.qlab4>

Jim Suttie

unread,
Jul 20, 2017, 5:02:27 AM7/20/17
to QLab
Thank you Mic, works perfectly.

Jim

w.ch...@iatse107.org

unread,
Jan 26, 2018, 12:17:47 PM1/26/18
to QLab
I successfully got the countdown timer to work on a test workspace using Qlab4 (free version) and QDisplay.  Everything compiled right, and ran when I first put it in.  When I saved the workspace and reloaded, the cues were broken, and said that a license was required to reactivate this saved cue.  Something to do with scripts?

Thanks in advance!

Chris Ashworth

unread,
Jan 26, 2018, 12:22:05 PM1/26/18
to w.ch...@iatse107.org, ql...@googlegroups.com
Hi there,

Welcome to the list!

As the warning noted, you’ll need a license (of any kind) to re-activate certain features.  If you’re using script cues, for example, any license type will enable Script cues.

You can see the full list of which features come with which licenses here:


Best,
Chris

William Childs

unread,
Jan 26, 2018, 1:22:40 PM1/26/18
to QLab
Thanks-
I didn’t get that I could test this feature live, but not save it.
All’s clear now
Reply all
Reply to author
Forward
0 new messages