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

    newbie question: sendmodelingcommand

    SDK Help
    0
    3
    246
    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 12/12/2003 at 02:31, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   7.3 
      Platform:    Mac  ;  
      Language(s) :   C.O.F.F.E.E  ;

      ---------
      hallo,

      i just don't get along with the sendmodelingcommand.

      SendModelingCommand([int] command, [[BaseDocument] doc = NULL], [BaseObject] op, [BaseContainer] data, [int] mode)
      

      i intended to convert a group of primitive-objects into a polygonobject and tried the following:

      SendModelingCommand(MCOMMAND_CURRENTSTATETOOBJECT,doc,op,FALSE,MODIFY_ALL);
      

      but there occurs an error: incompatible values INTEGER / OBJECT

      could someone give me a clou, how to use this code properly. i'd be very happy with an one line code example...

      regards,

      alex

      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 12/12/2003 at 11:01, xxxxxxxx wrote:

        This is the code I use:

            
            
            
            
               var op = GetActiveObject(doc);  
               var bc = new(BaseContainer);  
               var result = SendModelingCommand(MCOMMAND_CURRENTSTATETOOBJECT,doc,op,bc,MODIFY_ALL);
            
            
            
            
               println(result);
            
            
            
            
               GeEventAdd(DOCUMENT_CHANGED);
            
            
            
        
        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 12/12/2003 at 17:08, xxxxxxxx wrote:

          ah, yes, thanx a lot! it works great! ;-))

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