Show Notes
- TerryHynes
- Posts: 574
- Joined: Tue Dec 18, 2007 1:41 pm
- Location: Kitchener, Ontario, Canada
- Contact:
Re: Show Notes
Once you figure out the LUA scripting the HC.message box and autorun is a relatively simple way of achieving this. Another thought I had was to make the show notes a txt file but I'm not sure how to make that work as a macro. Great having time to think about these things finally - season is winding down here.
Terry Hynes
Head of Lighting
Centre In The Square
Kitchener, Ontario
Canada
Head of Lighting
Centre In The Square
Kitchener, Ontario
Canada
- RobertBell
- Posts: 2421
- Joined: Fri Oct 12, 2007 1:11 pm
- Primary Venue / Use: Other
- Where I Am: Horizon Control Inc
- Location: On the dark side just north of Toronto
- Contact:
Re: Show Notes
How about this? Save this code to a file called ShowStartupNotes.lua which is saved in your show file directory (or d:\horizon) It reads lines in a file called (specifically) d:\notes.txt
Then from any show file, make an Autorun cue list with a macro on it. When you get into the script editor, there will be a hint to ShowStartupNotes(). Just insert it and Robert's your mother's brother.
Code: Select all
function ShowStartupNotes()
io.input('d:\\notes.txt')
local count = 0
local notes = {}
while true do
local line = io.read()
if line == nil then
break
end
count = count + 1
notes[count] = line
end
if count > 0 then
local notetext = ''
for i, n in ipairs(notes) do
notetext = notetext .. i .. ' - ' .. n .. '\n'
end
HC.MessageBox(notetext)
end
end
HC.AddUserFunctionDescription('ShowStartupNotes()')
Robert Bell - Product Manager - Horizon Control Inc.
- 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: Show Notes
Does it REALLY need a change in anything other then the screen layout. SUGGESTION BELOW - THIS IS NOT CURRENTLY POSSIBLE...
I thought he meant something like this: Of course, MAYBE the "Label" in the cue list (say "Show Notes") could be the TITLE of a separate text file (Show Notes.txt), and if that file exists in the in the same folder as the show file, then the CONTENT of that file is shown in the window!
I thought he meant something like this: Of course, MAYBE the "Label" in the cue list (say "Show Notes") could be the TITLE of a separate text file (Show Notes.txt), and if that file exists in the in the same folder as the show file, then the CONTENT of that file is shown in the window!
Last edited by JohnGrimshaw on Wed Jun 10, 2009 7:53 pm, edited 1 time in total.
...and for more entertainment industry trivia and useless facts, just ask:
John Grimshaw
Managing Director
Stage Fast Pty Ltd
John Grimshaw
Managing Director
Stage Fast Pty Ltd
- TerryHynes
- Posts: 574
- Joined: Tue Dec 18, 2007 1:41 pm
- Location: Kitchener, Ontario, Canada
- Contact:
Re: Show Notes
Thanks, Robert and John. I gave that script a go and it works fine. But it doesn't quite do what I'm looking for which is to pop up show notes unique to the show. It pops up the notes.txt file which would have all show notes in it. At this point, the HC.messagebox idea seems to work best for what I'm trying to achieve. And having figured out that all it takes in the script is to include double square brackets at the start and end of the text string makes this a pretty simple thing to do. If there was some way to place this on a softkey I think we'd be off to the races.
Terry Hynes
Head of Lighting
Centre In The Square
Kitchener, Ontario
Canada
Head of Lighting
Centre In The Square
Kitchener, Ontario
Canada
- TaineGilliam
- Posts: 1186
- Joined: Tue Oct 23, 2007 5:15 pm
- Location: Cleveland, OH
- Contact:
Re: Show Notes
If Lua can know the name(and path) of the current show then it should be simple to modify Robert's script to look for showfile.txt instead of notes.txt
And as much as I like the elegance automatically determining the file name a fallback plan would be to make the macro call in the autorun pass a filename parameter.
And as much as I like the elegance automatically determining the file name a fallback plan would be to make the macro call in the autorun pass a filename parameter.
- RobertBell
- Posts: 2421
- Joined: Fri Oct 12, 2007 1:11 pm
- Primary Venue / Use: Other
- Where I Am: Horizon Control Inc
- Location: On the dark side just north of Toronto
- Contact:
Re: Show Notes
try this:
Just make sure you have a file in the same directory as the *.spf file name using the *.txt extention. i.e., bob.spf show file has notes called bob.txt in the same directory
Code: Select all
function ShowStartupNotes()
local filename = HC.GetProperty('system','showfilepath')
filename = string.gsub(filename,'.spf','.txt')
io.input(filename)
local count = 0
local notes = {}
while true do
local line = io.read()
if line == nil then
break
end
count = count + 1
notes[count] = line
end
if count > 0 then
local notetext = ''
for i, n in ipairs(notes) do
notetext = notetext .. i .. ' - ' .. n .. '\n'
end
HC.MessageBox(notetext)
end
end
HC.AddUserFunctionDescription('ShowStartupNotes()')
Robert Bell - Product Manager - Horizon Control Inc.
- TerryHynes
- Posts: 574
- Joined: Tue Dec 18, 2007 1:41 pm
- Location: Kitchener, Ontario, Canada
- Contact:
Re: Show Notes
Unfortunately, I'm very new to Lua. So I'm not sure how to do what you are suggesting. But if someone can give me a couple of pointers, I'd be glad to give it a crack.
Oops. Should have read Robert's edit first. I'll try the new script.
Oops. Should have read Robert's edit first. I'll try the new script.
Terry Hynes
Head of Lighting
Centre In The Square
Kitchener, Ontario
Canada
Head of Lighting
Centre In The Square
Kitchener, Ontario
Canada