Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Register
    • Login

    MCOMMAND_DELETE dosen't work?

    Scheduled Pinned Locked Moved SDK Help
    4 Posts 0 Posters 324 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      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");
      }

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        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/2154

        Can 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

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          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

          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

            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

            1 Reply Last reply Reply Quote 0
            • First post
              Last post