public xpTextObject SetTextSceneValue(xpScene scene_name, string text_name, string text_value) { xpTextObject textObj; xpBaseObject baseObj; if (scene_name.GetObjectByName(text_name, out baseObj)) { textObj = (xpTextObject)baseObj; textObj.Text = text_value; // textObj.BeginUpdate(); return(textObj); } return(null); }