HC.GetProperty()

Questions on Palette and Light Palette operation and features
Post Reply
User avatar
TaineGilliam
Posts: 1183
Joined: Tue Oct 23, 2007 5:15 pm
Location: Cleveland, OH
Contact:

HC.GetProperty()

Post by TaineGilliam » Fri Aug 29, 2008 11:55 am

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...

User avatar
JohnGrimshaw
Posts: 1233
Joined: Tue Oct 16, 2007 12:51 pm
Primary Venue / Use: Other
Where I Am: International Man of Mystery
Location: Sydney, Australia
Contact:

Re: HC.GetProperty()

Post by JohnGrimshaw » Fri Aug 29, 2008 6:28 pm

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')
HC.Status(CurrentCue)
...and for more entertainment industry trivia and useless facts, just ask:
John Grimshaw
Managing Director
Stage Fast Pty Ltd

User avatar
TaineGilliam
Posts: 1183
Joined: Tue Oct 23, 2007 5:15 pm
Location: Cleveland, OH
Contact:

Re: HC.GetProperty()

Post by TaineGilliam » Tue Sep 02, 2008 7:13 pm

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.

User avatar
JohnGrimshaw
Posts: 1233
Joined: Tue Oct 16, 2007 12:51 pm
Primary Venue / Use: Other
Where I Am: International Man of Mystery
Location: Sydney, Australia
Contact:

Re: HC.GetProperty()

Post by JohnGrimshaw » Tue Sep 02, 2008 7:37 pm

Try this

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

Where "Main" is the Cue List name, and 10 is the cue number
...and for more entertainment industry trivia and useless facts, just ask:
John Grimshaw
Managing Director
Stage Fast Pty Ltd

User avatar
TaineGilliam
Posts: 1183
Joined: Tue Oct 23, 2007 5:15 pm
Location: Cleveland, OH
Contact:

Re: HC.GetProperty()

Post by TaineGilliam » Thu Sep 04, 2008 12:24 pm

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.

Taine

Post Reply