THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 10/01/2005 at 02:53, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.100
Platform:
Language(s) : C.O.F.F.E.E ;
---------
Hello,
I'm trying to create InstanceObjects. The creation is working, but I can't set the Sourceobject. Can anyone please tell me how to do this?
My code looks like that:
newinstance = new(InstanceObject);
newinstance->SetName("blaa");
container = newinstance->GetContainer();
container->SetData(INSTANCEOBJECT_SOURCE, "Sat");
newinstance->SetContainer(container);
doc->InsertObject(newinstance,NULL,NULL);