Page 1 of 1

how to set the Scene of the node by codes in C#

Posted: 29 Dec 2015, 07:58
by clearMa
my puropose is :set the Scene property of the node called Scene Port of Ventuz by the application i wirte in C#
this is my code in C#

Code: Select all

  VentuzUri uri = VentuzUri.FromDataPool(Ventuz.Kernel.IO.DataPool.Scenes, "/sampleAboutScript");//sampleAboutScript is the name of the scene  i want to import to the node called Scene Port
  VentuzRemoteHelper ventuz = new VentuzRemoteHelper("127.0.0.1");
 VentuzSceneHelper scene = ventuz.LoadScene("/code", LoadBehavior.ReuseOrLoad);
  scene.SetProperty("/Scene", uri);
The problem is:the compiling seems no wrong ,but the last sentence had some problem,it does not work
could someone help me?i had been trouble by this for a long time

Re: how to set the Scene of the node by codes in C#

Posted: 05 Jan 2016, 10:39
by Karol
Hi!

I attached an scene archive which shows how to create a scene URL from string.

Best Regards
Karol