Get Cuelist Cue handles

Discussion and chat related to developing interfaces to the Titan software using the web API.

Moderator: Moderators

icke_siegen
Posts: 936
Joined: 02 Jul 2010, 10:29
Location: Siegen, Germany
Contact:

Get Cuelist Cue handles

Postby icke_siegen » 27 Apr 2020, 06:30

Is there a way to get the individual cue handles from inside of a cuelist? Becaus, titan/handles only returns the cuelist, not the cues in it.

If there is no such function can you please add this to the list? Thanks.
User avatar
Gregory
Site Admin
Posts: 1196
Joined: 14 Dec 2007, 15:25
Location: London, United Kingdom
Contact:

Re: Get Cuelist Cue handles

Postby Gregory » 17 Aug 2020, 17:41

Cue handles only exist in relation to certain user interface functions and are only created as required by the UI. This means that if you were to try and get a list of the cue handles in the system it would likely be incomplete.

You can get a list of the cue IDs in a playback by calling:

Code: Select all

http://localhost:4430/titan/handles/Playbacks?verbose=true
. Cues can be found under the information property of the returned object.

If you want to get a specific cue handle you can call

Code: Select all

http://localhost:4430/titan/script/2/Playbacks/GetPlaybackCueHandle?handle=1&cueNumber=2.0
which will create the handle if it does not exist already. Unfortunately this takes a cue number (not the ID) so would make it difficult to use with the function above. The only valid properties returned about the cue handle are the titanId and the legend, all the other properties are are either not relevant or not filled in.

You can get the cue handle using the cue ID like this

Code: Select all

http://localhost:4430/titan/script/2/Handles/GetHandleFromId?handleXmlNodeName=handle&id=1825
however in this case if the handle does not already exist, nothing will be returned even if the cue exists.

I have added task #86484 to allow cue information to be retrieved.

Who is online

Users browsing this forum: No registered users and 0 guests