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!

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

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

Moderator: Support

Post Reply
clearMa

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

Post by clearMa » 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#

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

User avatar
Karol
Posts: 640
Joined: 10 Jan 2012, 12:07

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

Post by Karol » 05 Jan 2016, 10:39

Hi!

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

Best Regards
Karol
Attachments
Dynamic_Scene.vza
(20.73 KiB) Downloaded 273 times

Post Reply