how to set the Scene of the node by codes in C#
Posted: 29 Dec 2015, 07:58
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#
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
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);
could someone help me?i had been trouble by this for a long time