Hello,
I'm trying to code a crawl. I've created a project with a scenegroup (just the group, no extra scenes in it) and a second scene that has the text object on it like you would normaly add to the scenegroup.
Now i am trying to load the scenegroup, and load the scene, and try to add the scene to the scenegroup, and I get the message Unable to attach scene to non template SceneGroup "SceneGroup1".
This is the code:
[CODE]
// Get the SceneGroup as a scene (is there an other way?)
engine.GetSceneByID(1, out scene);
// Turn the scene in a group
scenegroup = (xpSceneGroup)scene;
// Get another scene with textline, twice
engine.GetSceneByID(2, out scene1, true);
engine.GetSceneByID(2, out scene2, true);
// Fill the scenes with text
scene1.GetObjectByName("Text1", out obj1);
tekst1 = (xpTextObject)obj1;
tekst1.Text = "This is the first line of this crawl.";
// Insert scene in the SceneGroup
scenegroup.AddScene(scene1); //