THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 27/05/2008 at 04:57, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 10.5
Platform: Windows ;
Language(s) : C++ ;
---------
Hello
I am trying to add a camera to a scene, but I get multiples of cameras.
It seems my function call InsertCamera(op->GetDocument()); within GetVirtualObjects is called multiple times. How can avoid this multiple insertion ?
May I use an Execute Method beside GetVirtualObjects ? When is it called ?
Bool CLODDY4D::InsertCamera(BaseDocument *doc){
CameraObject *cam = (CameraObject* )BaseObject::Alloc(Ocamera);
doc->InsertObject(cam, NULL, NULL,FALSE);
EventAdd();
return TRUE;
}
Cheers
Sascha