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

    SendModelingCommand + Bevel

    SDK Help
    0
    7
    613
    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

      On 24/09/2013 at 06:25, xxxxxxxx wrote:

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

      ---------
      Hello can I ask what changed with SendModelingCommand and Bevel for COFFEE scripts?

      this is working in R14

      var bc = new(BaseContainer);
      bc->SetData(MDATA_BEVEL_OFFSET1 , 2);
      SendModelingCommand(ID_MODELING_BEVEL_TOOL, NULL, op, bc, MODIFY_POLYGONSELECTION);

      and this not for R15 even if I change ID to 431000015

      var bc = new(BaseContainer);
      bc->SetData(MDATA_BEVEL_OFFSET_MODE , 2);
      bc->SetData(MDATA_BEVEL_RADIUS , 1/2.0);
      SendModelingCommand(ID_MODELING_BEVEL_TOOL, NULL, op, bc, MODIFY_POLYGONSELECTION);

      Thanks for any info!

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

        On 24/09/2013 at 09:00, xxxxxxxx wrote:

        Hi
        Work for me.
        But i made from maxon(their copyrights) bevel tool, py-modifier version(currently undecorated)
        http://imm.io/1gIMc

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

          On 24/09/2013 at 11:39, xxxxxxxx wrote:

          That looks nice, but I am looking for coffee way, looks like new bevel isnt supported by it, good to know python works, thanks for info.

          Can anyone confirm that coffee support was dropped?

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

            On 24/09/2013 at 23:58, xxxxxxxx wrote:

            Hi,

            ID_MODELING_BEVEL_TOOL is no more valid. 431000015 is the new command ID (you can find it in the Customize Commands dialog). This is the same for all APIs in CINEMA.
            For more information please have a look at this recent thread:
            https://developers.maxon.net/forum/topic/7446/9267_new-bevel-tool-and-sendmodellingcommand&PID=36653#36653

            Regards,

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

              On 25/09/2013 at 01:21, xxxxxxxx wrote:

              Thanks for reply, but I explained in first post I tried directly with ID number and it doesn't work..

              in R15 this returns 0 in console:

              var temp = SendModelingCommand(431000015, NULL, op, bc, MODIFY_POLYGONSELECTION);
              println(temp);

              and R14 returns 1 in console:

              var temp = SendModelingCommand(ID_MODELING_BEVEL_TOOL, NULL, op, bc, MODIFY_POLYGONSELECTION);
              println(temp);

              given that 1 polygon was selected in both cases.

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

                On 25/09/2013 at 02:09, xxxxxxxx wrote:

                Sorry, I didn't read your first post carefully.

                You now have to pass the document to SendModelingCommand() for the new bevel command to work:

                SendModelingCommand(431000015, doc, op, bc, MODELINGCOMMANDMODE_POLYGONSELECTION)
                

                Also you should pass a MODELINGCOMMANDMODE_ value instead of a legacy enum value (MODIFY_).

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

                  On 25/09/2013 at 06:11, xxxxxxxx wrote:

                  thats it, thanks a lot!

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