Director Api
Posted: 05 Dec 2014, 17:14
Hello.
Here (http://www.ventuz.com/support/help/late ... ugIns.html), the documentation says :
FirstLine is a dynamic type. But what if i don't know the name of the type and his type ?
So having only this information :
Here (http://www.ventuz.com/support/help/late ... ugIns.html), the documentation says :
Code: Select all
DirectorTemplateData templateData = new DirectorTemplateData(template);
templateData.Data.FirstLine = "Test";
Code: Select all
using (StreamReader reader = File.OpenText("C:\\Users\\Public\\Documents\\Ventuz4\\Projects\\DirectorSlideShow\\pages\\LineChart3_20141205_150309.vpg"))
{
// Get the data from page (not the Template).
TemplateData data = TemplateData.Deserialize(reader, false, null);
// data.DataModel is always null...
// data.Template is alwals null...
// Get the Template from the uri of the page
Template template = this.plugin.Application.Show.Templates.GetTemplate(data.Namespace);
// Problem the Template has no data associated, so CueAsync just cue the Template, not the Page.
DirectorTemplateData templateData = new DirectorTemplateData(template);
this.plugin.Application.Show.Channels[0].CueAsync(templateData);
// templateData.Data is readonly so this can't be use :
// templateData.Data = data.Data;
}
, how can i make a CueAsync on this page ?C:\\Users\\Public\\Documents\\Ventuz4\\Projects\\DirectorSlideShow\\pages\\LineChart3_20141205_150309.vpg