MCOMMAND_DELETE dosen't work?
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 07/01/2005 at 02:15, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.500
Platform: Windows ;
Language(s) : C.O.F.F.E.E ;---------
Hi together,
I 've got a litte problem. I didi not get this function to run.
I want to make a funktion to delete Objekts.
I think the mistake is at SendModelingCommand. But i do not see it.
Can you help me? Thank you very much.
Tim
Loeschen(){
//println("Löschen start");
var doc = GetActiveDocument();
var op = doc->FindObject("Kamera");
var namm=op->GetName();
println(namm);
var data=op->GetContainer();
SendModelingCommand(MCOMMAND_DELETE,NULL,op,data,MODIFY_ALL);
op->SetContainer(modus);
op->Message(MSG_UPDATE);
GeEventAdd(DOCUMENT_CHANGED);
//println("Löschen ende");
} -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 07/01/2005 at 16:46, xxxxxxxx wrote:
I found a Message:
https://developers.maxon.net/forum/topic/2154Can anyone help me and make an example. I didn`t get it run.
Thank you very much.
Sorry for my bad english, I`m trying to get it better.CU TIM
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 07/01/2005 at 19:27, xxxxxxxx wrote:
SendModelingCommand mainly works with points and polygons. Try op->Remove(), it removes the object from the document - in essence, deleting it.
Robert
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 08/01/2005 at 05:08, xxxxxxxx wrote:
Thank you very much!
Tim