Hello Ventuzians!
THE FORUMS ARE CLOSED!

Please join our discord server HERE!! << click me :D

We are shutting our Ventuz Forum, but don't worry, it will all be archived for you to search in if you have a query. From now on, please add all your comments, questions or observations into our Discord Server

Thanks for the great time - see you on discord!!
Dee, Karol, Daniel and the whoooole Product and Support team!

remoting and template port

Q and A about functionality and how to solve a special task for your application.

Moderator: Support

Post Reply
kris rok

remoting and template port

Post by kris rok » 08 May 2014, 16:07

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);

kris rok

Re: remoting and template port

Post by kris rok » 04 Jun 2014, 12:42

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 :)

Post Reply