Go to cue and load time

169 views
Skip to first unread message

Pace

unread,
Sep 2, 2025, 10:47:57 AMSep 2
to QLab
Hello all !!!
I'm trying to make a cue that would place the play head to a certain cue number and load to a specific time.  I asked ChatGPT to help me and it suggested me an Apple script. In fact, a lot of them neither of which works. I guess it doesn't have to be an Apple script but I'm curious to know what it would look like. The number of the cue that I would like to place the playhead to is .01 which is a group cue (mode timeline) that contains audio cues and video cues. Load to time is 78 seconds though i  know that I would just have to change cue number  and load to time.  If you want , i can send you the different tries of ChatGPT.   Once again, thank you for your precious help. 
Capture d’écran, le 2025-09-02 à 09.58.40.png

Rich Walsh

unread,
Sep 2, 2025, 11:12:17 AMSep 2
to ql...@googlegroups.com
You don’t need a Script Cue: use a GoTo Cue that auto-continues into a Load Cue, both targeting cue “.01”. On the Load Time tab of the Load Cue, set the "Load target cue to time" to 78.

Script version:

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

set playhead of current cue list to cue ".01"

load (cue ".01") time 78

end tell


It’s a pretty trivial script. ChatGPT is absolutely useless for scripting QLab. Why do people keep trying to use it?

Rich

On 2 Sep 2025, at 15:47, Pace <pascal...@videotron.ca> wrote:

Hello all !!!
I'm trying to make a cue that would place the play head to a certain cue number and load to a specific time.  I asked ChatGPT to help me and it suggested me an Apple script. In fact, a lot of them neither of which works. I guess it doesn't have to be an Apple script but I'm curious to know what it would look like. The number of the cue that I would like to place the playhead to is .01 which is a group cue (mode timeline) that contains audio cues and video cues. Load to time is 78 seconds though i  know that I would just have to change cue number  and load to time.  If you want , i can send you the different tries of ChatGPT.   Once again, thank you for your precious help. 
<Capture d?e?cran, le 20 25-09-02 à 09.58.40.png>

Tim Reid

unread,
Sep 2, 2025, 11:14:04 AMSep 2
to ql...@googlegroups.com
Hi,

I’ve also done this with Local OSC cues - two cues in a timeline group like so:


Screenshot 2025-09-02 at 16.04.20.png

Here’s the inspector for the cues. The first one loads the playhead to the right place, the second does the load to time. All that’s left is to press GO.

Screenshot 2025-09-02 at 16.04.31.png


Screenshot 2025-09-02 at 16.04.38.png

Hope that’s useful.
Tim

On 2 Sep 2025, at 15:47, Pace <pascal...@videotron.ca> wrote:

Hello all !!!
I'm trying to make a cue that would place the play head to a certain cue number and load to a specific time.  I asked ChatGPT to help me and it suggested me an Apple script. In fact, a lot of them neither of which works. I guess it doesn't have to be an Apple script but I'm curious to know what it would look like. The number of the cue that I would like to place the playhead to is .01 which is a group cue (mode timeline) that contains audio cues and video cues. Load to time is 78 seconds though i  know that I would just have to change cue number  and load to time.  If you want , i can send you the different tries of ChatGPT.   Once again, thank you for your precious help. 
<Capture d?e?cran, le 20 25-09-02 à 09.58.40.png>

--
Contact support anytime: sup...@figure53.com
User Group Code of Conduct: https://qlab.app/code-of-conduct/
 
Instagram: https://www.instagram.com/Figure53
Bluesky: https://bsky.app/profile/qlab.app
---
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 visit https://groups.google.com/d/msgid/qlab/f8eb0be4-af2d-4570-96b8-079a774017b0n%40googlegroups.com.

Rich Walsh

unread,
Sep 2, 2025, 11:17:03 AMSep 2
to ql...@googlegroups.com
You don’t need a Script Cue: use a GoTo Cue that auto-continues into a Load Cue, both targeting cue “.01”. On the Load Time tab of the Load Cue, set the "Load target cue to time" to 78.

Script version:

tell application id "com.figure53.QLab.5" to tell front workspace
set playhead of current cue list to cue ".01"
load (cue ".01") time 78
end tell

It’s a pretty trivial script. ChatGPT is absolutely useless for scripting QLab. Why do people keep trying to use it?

Rich
On 2 Sep 2025, at 15:47, Pace <pascal...@videotron.ca> wrote:

Hello all !!!
I'm trying to make a cue that would place the play head to a certain cue number and load to a specific time.  I asked ChatGPT to help me and it suggested me an Apple script. In fact, a lot of them neither of which works. I guess it doesn't have to be an Apple script but I'm curious to know what it would look like. The number of the cue that I would like to place the playhead to is .01 which is a group cue (mode timeline) that contains audio cues and video cues. Load to time is 78 seconds though i  know that I would just have to change cue number  and load to time.  If you want , i can send you the different tries of ChatGPT.   Once again, thank you for your precious help. 

micpool

unread,
Sep 2, 2025, 11:21:00 AMSep 2
to QLab
On Tuesday, September 2, 2025 at 4:12:17 PM UTC+1 Rich Walsh wrote:
You don’t need a Script Cue: use a GoTo Cue that auto-continues into a Load Cue, both targeting cue “.01”. On the Load Time tab of the Load Cue, set the "Load target cue to time" to 78.

Script version:

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

set playhead of current cue list to cue ".01"

load (cue ".01") time 78

end tell


It’s a pretty trivial script. 

Pretty trivial, as long as you remember the brackets, which aren't particularly consistent with the rest of the QLab Applescript dictionary!

Mic

 

Chris Ashworth

unread,
Sep 2, 2025, 1:55:53 PMSep 2
to Pace, ql...@googlegroups.com
Hi Pace,

ChatGPT doesn’t currently have a sufficient understanding of QLab to produce useful results, so I’d avoid asking it about how to do stuff in QLab as it is (at least currently) almost always wrong.

This is most easily done without Script cues. Here is an example of one way to do it, using a Goto Cue and a Load Cue:

Rich Walsh

unread,
Sep 2, 2025, 3:59:58 PMSep 2
to ql...@googlegroups.com
This is because you have these three items in the dictionary:

load (a Command)
cue (a Class)
load cue (another Class)

The compiler can’t tell the difference between load cue 1 and load (cue 1) without the brackets. I’m guessing it interprets “load cue” before “load… cue” unless you force it to understand that the word “cue” is not part of the “load cue” syntax. Probably needed a different verb from the adjective when the dictionary was first written. I can’t think of any other unfortunate combinations.

Rich

Paul

unread,
Sep 3, 2025, 2:14:16 PMSep 3
to QLab
This is my preferred script solution, as it has two simple assignments of the cue number and the load time and deals with the cue possibly being in another cue list 

-- load specified cue to time and move playhead to that cue

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

set myCueNum to "0.01"

set loadTime to 78

set myCue to cue myCueNum

load myCue time loadTime

set playhead of (parent list of myCue) to myCue

end tell


You can also do this with OSC via Network cues, but the useful look 

     /cue/0.01/loadAt 78

   /cue/999/playhead "0.01"


assuming you have give the cue list of your cue a number of 999

the rather promising looking OSC command

    /cue/{cue_number}/loadAndSetPlayhead

will set the playhead but infuriating loads the cue to 0 (and when I tried putting them in a group it did something weird). So in this case I think the best solution may be using Load and Goto cue solution as suggested by Chris 


Roly Botha

unread,
Sep 7, 2025, 6:56:14 AMSep 7
to ql...@googlegroups.com
Likely that there is a more elegant version to be made, but I happened to be experimenting with building something like this to jump to a given cue at a given time, based on input in a dialog box and wondered if that would be useful to you, Pace. 

set CueList to "Main Cue List"


display dialog "Separate with a comma!" & return & return & "Cue number, time to standby?" default answer ""

if button returned of result = "cancel" then

return

else

set theAnswer to text returned of the result

set ASTID to AppleScript's text item delimiters -- remembers current text item delimiters

set AppleScript's text item delimiters to ","

-- display alert if no input

if theAnswer is "" then

beep

display alert “No input detected!"

else

set myCue to first text item of theAnswer

end if

-- default to 0s if no time specified

if theAnswer does not contain "," then

set theTime to "0"

else

set theTime to second text item of theAnswer

end if

set AppleScript's text item delimiters to ASTID

end if



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

load (cue myCuetime theTime

set playhead of current cue list to cue myCue

end tell



To the rest of the hive mind, this works decently for me - though there's a couple of things I'm struggling with. Specifically, I haven't been able to make "set playhead of (parent list of myCueto myCuework, hence the below only targeting "current cue list”. Another little thing is that I would love an alert to display if the cue number entered doesn't appear in the workspace, but I can't quite figure out where to start on that.

Any help much appreciated!

Thanks!
--
Roly Botha (they/them)

Though I sometimes send emails at unusual times, I never expect anyone to respond outside their own working hours. 

--
Contact support anytime: sup...@figure53.com
User Group Code of Conduct: https://qlab.app/code-of-conduct/
 
Instagram: https://www.instagram.com/Figure53
Bluesky: https://bsky.app/profile/qlab.app
---
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.

micpool

unread,
Sep 8, 2025, 2:26:20 AMSep 8
to QLab
On Sunday, September 7, 2025 at 11:56:14 AM UTC+1 Roly Botha wrote:
there's a couple of things I'm struggling with. Specifically, I haven't been able to make "set playhead of (parent list of myCueto myCuework, hence the below only targeting "current cue list”. Another little thing is that I would love an alert to display if the cue number entered doesn't appear in the workspace, but I can't quite figure out where to start on that.

set playhead of (parent.......... works fine. See attached screen recording and workspace

This workspace also includes an alert if the cue does not exist.

The script is:

set cueNum to text returned of (display dialog "Cue Number to go to?" default answer "")

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

try

set myCue to cue cueNum

set playhead of (parent list of myCue) to myCue

set current cue list to parent list of myCue

on error {}

display alert "Not a Valid Cue Number"

end try

end tell 
Roly.qlab5
Screen Recording 2025-09-08 at 07.21.30-HD 1080p.mov

Roly Botha

unread,
Sep 8, 2025, 3:52:49 AMSep 8
to ql...@googlegroups.com, QLab
Thank you so much Mic! Not super familiar with try/end try and the “{}” so this is super helpful to see in context. 

Thanks!
--
Roly Botha (they/them)


Though I sometimes send emails at unusual times, I never expect anyone to respond outside their own working hours.

On 8 Sep 2025, at 07:26, micpool <m...@micpool.com> wrote:

--
Contact support anytime: sup...@figure53.com
User Group Code of Conduct: https://qlab.app/code-of-conduct/
 
Instagram: https://www.instagram.com/Figure53
Bluesky: https://bsky.app/profile/qlab.app
---
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 visit https://groups.google.com/d/msgid/qlab/53f29e5e-afbf-46e7-bfda-7e0347d314f1n%40googlegroups.com.
<Roly.qlab5>
<Screen Recording 2025-09-08 at 07.21.30-HD 1080p.mov>
Reply all
Reply to author
Forward
0 new messages