--create 128 network cues to control video effect parameter values triggered by 128 MIDI cc values
set theTargetCue to "VIDEO"
set theIndex to 0
set theParameter to "inputAngle"
set theMin to -180
set theMax to 180
set theMIDIch to 11
set theMIDIcc to 11
----Do not alter anything below this line
set theStep to (theMax - theMin) / 127
set theOSC to "/cue/" & theTargetCue & "/videoEffectIndex/" & theIndex & "/parameter/" & theParameter & "/live "
tell application id "com.figure53.QLab.5" to tell front workspace
repeat with theValue from 0 to 127
make type "network"
set theSelected to last item of (selected as list)
set the midi command of theSelected to control_change
set the midi byte one of theSelected to theMIDIcc
set the midi byte two of theSelected to theValue
set the midi trigger of theSelected to enabled
set the midi trigger channel of theSelected to theMIDIch
--set the OSC message to be sent by the new cue
set thelevel to theMin + theValue * theStep
set thelevel to round (thelevel) rounding to nearest
set the custom string of theSelected to theOSC & thelevel
set the q number of theSelected to "cc" & theMIDIcc & "_" & theValue
end repeat
end tell
Screen recording attached
Mic