Page 1 of 1


Posted: Fri Aug 29, 2008 11:55 am
by TaineGilliam
I'm having a bit of trouble with HC.GetProperty to get the label of a cue.

tshow = "currrentshowtext = '" .. HC.GetProperty('cue', 'Main', 10, 'name') .."'"

was my attempt but it always returns and empty string. I'm sure it is something simple but...

Re: HC.GetProperty()

Posted: Fri Aug 29, 2008 6:28 pm
by JohnGrimshaw

Code: Select all

SelectedCue = HC.GetProperty('cue', 'Main', 10, 'name')
-- gives you the name of Cue 10 in the Variable "SelectedCue"

-- IF you fire this from a macro in the cue, then this gives you the CURRENT cue...
qnum = HC.GetScriptSource('number')
qnum = tonumber(qnum)/1000
CurrentCue = HC.GetProperty('cue', 'Main', qnum, 'name')

Re: HC.GetProperty()

Posted: Tue Sep 02, 2008 7:13 pm
by TaineGilliam
Something fishy going on here:

HC.Status(HC.GetProperty('cuelist', 0, 'name'))
HC.Status(HC.GetProperty('cue', 0, 0, 'name'))

Shows me:

18:57:39 Main
18:57:39 Cue 1

This is not 1-based numbering. AND this it using the index in the cue list not the number of the cue. Any idea how to do this based o nthe Cue Number not the index of the cue in the list? I've tried the cue number in quotes - '101' or with a hash is quotes '#101' but no luck.

Re: HC.GetProperty()

Posted: Tue Sep 02, 2008 7:37 pm
by JohnGrimshaw
Try this

HC.Status(HC.GetProperty('cue', 'Main', 10, 'name'))

Where "Main" is the Cue List name, and 10 is the cue number

Re: HC.GetProperty()

Posted: Thu Sep 04, 2008 12:24 pm
by TaineGilliam
I have Cues 1, 99, 101, 199 in the Cue list Main. It is the first cue list in the list.

HC.Status(HC.GetProperty('cue', 'Main', 0, 'name')) returns the name of Cue 1

HC.Status(HC.GetProperty('cue', 'Main', 1, 'name')) returns the name of Cue 99

HC.Status(HC.GetProperty('cue', 'Main', 1, 'number')) returns number 99

I'd really like to be able to lookup a Cue name by Cue Number without having to build some crazy array after looping through by index.

And where can we get documentation on the HC. functions? I realize many are self explanatory but some like GetProperty and AttributeGetValue are a bit more opaque.