THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 15/02/2009 at 06:35, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 10.5
Platform:
Language(s) : C.O.F.F.E.E ;
---------
Hi,
Is there any way to extract the first object of a c4d-file into the current file with COFFEE?
I tried it using LoadDocument, getFirstObject, copying it to the current file and closing the opened file, but this just led to crashes:
var nDoc = LoadDocument(fn);
var bd = GetActiveDocument();
var obj = bd->GetFirstObject();
CallCommand(12664);
GetActiveDocument();
doc->InsertObject(obj, NULL, NULL);
Does anybody have a working solution for this?