My scene contains a MeshText node and the Text Value is externalized as "Text". I can get the value in my code. So the connection is working... If I try to change the Value with SetPropertiesInvokeMethods() a strange behavior occurs: SetPropertiesInvokeMethods() changes the value only on the scene object in my code but it doesn't take effect in the actual scene. So if i get the value again, it is the new text, but the scene still shows the old value... what am i missing? See code below...
regards
b#
Code: Select all
using System;
using Ventuz.Remoting2;
using Ventuz.Remoting2.Helpers;
class Program
{
static void Main(string[] args)
{
RemoteScene ventuz = RemoteScene.Connect("localhost");
RemoteScene scene = ventuz.LoadScene("/scene1");
object Text_ = scene.GetProperties(new string[] { "/Text" })[0];
Console.WriteLine(Text_);
//prints the value 'ABCDEFG" from the node "/Text" correctly
scene.SetPropertiesInvokeMethods(new string[] { "/Text" }, new object[] { "Hello World" }, null, null, RemoteScene.IMMEDIATE, null);
Text_ = scene.GetProperties(new string[] { "/Text" })[0];
Console.WriteLine(Text_);
//prints the new text in the MeshText node, so changes have been applied..
//but unfornatly the scene still shows the old value!!??
//what do I miss
}
}