Page 1 of 1

remoting and template port

Posted: 08 May 2014, 16:07
by kris rok
hi,

i'm trying to figure out how to cue and take a template via remoting.
so far the Cue() call does not result in an exception anymore. in the stage editor i can see the correct scene (sub) below the main scene, so it gets loaded into the main scene's domain. but then Take() throws a ServerException ("Machine #1: No template cued").

is the Cue() call correct? is the async task supposed to complete when the data is cued?

could you give me a hint or two to fill the gaps in the doc? ;)

Code: Select all

var cueData = new TemplateData(new Uri("ventuz://templates/tmplt|sub/Animation1/S2"));
cueData.Data.Integer = rnd.Next(-5, 5).ToString();
var cueDataString = cueData.ToString(DataFormat.JSON);

var takeInfo = await cluster.Cue(main.IID.Value, 0, TransitionOptions.None, cueDataString, System.Guid.NewGuid(), null, null);
await cluster.Take(main.IID.Value, 0, takeInfo.TakeID, null, null);

Re: remoting and template port

Posted: 04 Jun 2014, 12:42
by kris rok
in the meantime i had success loading a template but only into the layout scene:

Code: Select all

takeInfo = await cluster.Cue("0000", 0, TransitionOptions.None, bla, Guid.NewGuid(), null, null);
await cluster.Take("0000", 0, takeInfo.TakeID, null, null);
is it possible to load templates into specific template ports using a similar technique?

please enlighten me.

edit:
the manual page reads like you planned more info on how to do exactly that, the paragraph about remoting with the template engine is only really short at the moment :)