I have a dummy textobject that I want to copy and place in a specific group:
Dim group, obj As xpBaseObject
Dim source As xpTextObject
scene.GetObjectByName("NewsAnimGroup", group)
scene.GetObjectByName("DummyNewsField", source)
obj = scene.GetObjectCopy(source)
obj.Name = "test_object"
obj.SetParent(group)
It creates and names the object under scene, but SetParent does not work (and returns false).
Also does not work if I try it on an object after scene.CreateObject. If I specify the parent in CreateObject it works, but if I use setParent afterwards, it doesn't.