I have this example code to “insert text media” using scripting…
PlugInNode generator = app.Generators.GetChildByName("Sony Text");
media = new Media(generator, "Footy Scores");
stream = media.Streams;
newEvent = new VideoEvent(evnt.Start, evLen);
take = new Take(stream);
… but the code implies I have to use presets to determine what is written, and that I don’t have any control over it otherwise.
If anyone wonders how I did this eventually, I made the format of the text I required in Sony Vegas, and then wrote C# to recreate the file I was using, like a temp.xml, and just overwrote it before using.
Then I insert that media, and viola, it displays the correct text.
// List of White Scorers
generatorb = app.Generators.GetChildByName("Sony Titles & Text");
mediad = new Media(generatorb, "EndScoresWhite");
streamd = mediad.Streams;
newEventd = new VideoEvent(endDisplay, endDisplayFor);
taked = new Take(streamd);
public int CreateWhiteList(string str)
string path = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + "OFX Presetscom.sonycreativesoftware_titlesandtextGenerator" + "endscoreswhite.xml";