Fill cues from a script?

Write here what nice effects or shows you have done with MADRIX or ask other users.

Moderator: MADRIX Team

Locked
bfarn
Posts: 5
Joined: Tue Apr 30, 2013 1:46 am

Fill cues from a script?

Post by bfarn »

Hello again, Madrix tem,
I have another question related to the same project as my last post.

As I mentioned, we're making a system that has hundreds of short video files, each one loaded into its own Storage Place.

I've been looking through the scripting and HTTP remote documentation, and I may just be missing something. Is it possible to fill the Storage Places via a script? Ideally we'd like to use a csv file with footage name / file path pairs, then have each line of the CSV fill and name a Storage Place.

Thanks again for your help,
--David
User avatar
Wissmann
Developer
Developer
Posts: 774
Joined: Fri Feb 23, 2007 3:36 pm
Location: Germany
Contact:

Re: Fill cues from a script?

Post by Wissmann »

You can Import a whole storage or even just a single storage place by

Code: Select all

void ImportStorage(int storage, string name)
or

Code: Select all

void ImportStoragePlace(int storage, int place, string name)
To read a file like your csv file with script please read this
http://www.madrix.com/scripthelp/hidd_f ... tions.html
LEDs are nothing without control ;-)
bfarn
Posts: 5
Joined: Tue Apr 30, 2013 1:46 am

Re: Fill cues from a script?

Post by bfarn »

That's perfect, thank you again for a fast and helpful response!
bfarn
Posts: 5
Joined: Tue Apr 30, 2013 1:46 am

Re: Fill cues from a script?

Post by bfarn »

Hello again Wissmann,
We almost have everything worked out. The script functions you suggest are great, but on closer inspection I realize that they can only load .mef and .mss files. To put it another way, these functions can only load storage spaces that have already been defined. We would like to write a script to set up the storage places from empty.

For instance, we have many hundreds of video files. Is there any way to load all of the video files into storage spaces, other than doing it manually?
Without a script we would have to:
-Click a storage space
-Click Select Effect
-Browse the drop-down menu to SCE->Video
-Click Open Video File
-Browse to a video file
-Click the description field
-Type in the name of the video (we need this for our interactive functionality)

Obviously we would like to automate this process. If it's not possible, that's ok, it's just work we'd like to make simpler.

Thanks yet again,
--David
User avatar
Wissmann
Developer
Developer
Posts: 774
Joined: Fri Feb 23, 2007 3:36 pm
Location: Germany
Contact:

Re: Fill cues from a script?

Post by Wissmann »

Oh sorry, i misunderstand your question.
It is true, ImportStoragePlace only handle .mef in MADRIX 2.X (.mspz in MADRIX 3).
So unfortunately what you have in mind is not possible yet.
LEDs are nothing without control ;-)
bfarn
Posts: 5
Joined: Tue Apr 30, 2013 1:46 am

Re: Fill cues from a script?

Post by bfarn »

No problem - as long as we know what we're up against, the workload isn't too bad.
Thanks again
Locked