Hi All,
Looking for some help with a script I am trying to create.
I want to be able to set the playhead(?) on an audio track to a relevant position and press a shortcut key to create a new cue to trigger an ETC eos cue. I provide the cue number in a dialogue box, and the cue should have its pre-wait time set to the current time of the playhead in the audio cue.
I have my Eos cue creator script working great, but cannot work out how to set the pre-wait time from the currently paused audio cue. Any help gratefully received!
display dialog "Create Cue to fire EOS cue number" & return & return & "Enter cue number:" default answer "" buttons {"Cancel", "OK"} default button "OK"
if button returned of result is not "Cancel" then
set cNumber to (text returned of the result) as number
end if
display dialog "How many sequential cues?" default answer "1" buttons {"Cancel", "OK"} default button "OK"
if button returned of result is not "Cancel" then
set cAmount to (text returned of the result) as number
end if
tell application id "com.figure53.QLab.5" to tell front workspace
repeat with i from 1 to cAmount
set nextCue to cNumber + (i - 1) as number
set newCueNumber to "L" & nextCue
set newCueName to "Lights " & nextCue
make type "Network"
set networkCue to last item of (selected as list)
set properties of networkCue to {q number:newCueNumber, q name:newCueName, network patch number:1}
set parameter values of networkCue to {"no", "cue", "fire", nextCue}
end repeat
end tell
Thanks,
Andy