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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    modelling commnad crashes c4d

    SDK Help
    0
    4
    385
    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
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 29/02/2004 at 01:05, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   8.200 
      Platform:   Windows  ;   
      Language(s) :   C.O.F.F.E.E  ;   XPRESSO  ;

      ---------
      Hi all!

      I created a primitive cubde with default settings and added a COFFEE tag to it, see below:

        
      main(doc,op)  
      {  
           var cntCube = op->GetContainer();  
           SendModelingCommand(MCOMMAND_MAKEEDITABLE,doc,op,cntCube,MODIFY_ALL);  
           op->Message(MSG_UPDATE);  
           //GeEventAdd(DOCUMENT_CHANGED);  
             
        
      //GeEventAdd(DOCUMENT_CHANGED);       
      }  
      

      This code promtly crashes C4d, what have I done wrong? Thanks!

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 05/03/2004 at 00:15, xxxxxxxx wrote:

        Anybody? Any tips?

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

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 06/03/2004 at 05:03, xxxxxxxx wrote:

          1. You sent the wrong container, so the result is undefined. SendModelingCommand() wants a container with settings for the command, or an empty container in this case.
          2. Perhaps the result of the command is that another cube, with the same tag, is inserted into the scene. Then that cube produces yet another cube, so your scene will grow to infinity.
          3. You don't need to send an update message to the cube, since nothing has changed in it. The result of the command is a new object.

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

            THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

            On 08/03/2004 at 11:36, xxxxxxxx wrote:

            Thanks!

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