Page 1 of 1

Create and Attach Scripts via commands

Posted: Fri Aug 28, 2009 10:51 pm
by MickCrozier
It be handy to be able to create and attach a script to anything via commands.

So where functionality requires the use of a script - such as start and stop cue list chase, it can be performed very quickly by an external app, or a bump button.

perhaps along the lines of:

HC.ScriptEditorOpen('lookpage | cuelist | etc', 'parent', 'item' [, action [, value]]) - returns scriptOpenID - loads the existing script if present
HC.ScriptEditorAddLine(scriptOpenID, 'ScriptLineString')
HC.ScriptEditorGetScript(scriptOpenID) - returns tab separated list of lines
HC.ScriptEditorGetLine(scriptOpenID, number)
HC.ScriptEditorDeleteLine(scriptOpenID, number)
HC.ScriptEditorClose(scriptOpenID) - creates the action (or deletes if script is empty) and saves the script

Re: Create and Attach Scripts via commands

Posted: Sat Aug 29, 2009 11:27 am
by RobertBell
Are you sure this can't be done by defining the function on the fly from within your app using function (see

I guess the issue is, the function is not stored in the show file. You could store it along side the showfile using and using Chuncks.

Maybe you could tell me a bit more of what you want to do. Is this for architectural purposes? Please give me an example of why the outside app would be wanting to change the macros inside the show file?

Re: Create and Attach Scripts via commands

Posted: Sat Aug 29, 2009 9:13 pm
by MickCrozier
Hi Robert

Its more about being able to automagically put the scripts in the right place, like in a cue.

there are 2 apps I had in mind -
Cue List Chase Assistant, like John's Bump Chase Builder. The app would be able to assign hc.cuelistgo and hc.curlistrelease to a cue. (This would need a few other functions now that I think about it - to manipulate cuelist properties)

And also a Show Reporter Assistant - click a button and it adds showstart etc to the chosen cue.