MADRIX Forum • Fill cues from a script?
Page 1 of 1

Fill cues from a script?

Posted: Wed May 01, 2013 10:34 pm
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

Re: Fill cues from a script?

Posted: Thu May 02, 2013 3:26 pm
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

Re: Fill cues from a script?

Posted: Thu May 02, 2013 6:24 pm
by bfarn
That's perfect, thank you again for a fast and helpful response!

Re: Fill cues from a script?

Posted: Fri May 03, 2013 3:15 am
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

Re: Fill cues from a script?

Posted: Fri May 03, 2013 6:53 am
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.

Re: Fill cues from a script?

Posted: Fri May 03, 2013 6:15 pm
by bfarn
No problem - as long as we know what we're up against, the workload isn't too bad.
Thanks again