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

    Tool for polygon objects

    SDK Help
    0
    5
    559
    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 09/05/2017 at 07:02, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R18 
      Platform:   Windows  ; Mac  ;  Mac OSX  ; 
      Language(s) :     C++  ;

      ---------
      Hello,
      I'd like to create plugin tool for modifying editable polygon objects. It should change mesh of existing object in similar way to Extrude or Line Cut mesh tools. I cannot find anything similar to this in Cinema official samples.

      Can you give me some general guidelines how to do that correctly?

      I already tried something like this:
       - class derived from ToolData (is it the right base class for such tool? )
       - in MouseInput function I modified selected object (accessing mesh of safely casted PolygonObject - not sure if this is correct )

      It does some strange things, like object is sometimes deselected or mesh disappears completely.

      Thank you.

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

        On 09/05/2017 at 10:09, xxxxxxxx wrote:

        Hi,
        ToolData is the older version of tool plugins that does not support resources.
        Most of the time DescriptionToolData is a better choice.

        I have an example tool plugin on my site called "Tool Plugin" that shows how to highlight, select, or delete polygons using the LMB.
        There are some notes in the code for different ways to use the SendModelingCommand options. So instead of using delete, you can change it to extrude the selected polygon.

        https://sites.google.com/site/scottayersmedia/plugins

        -ScottA

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

          On 09/05/2017 at 23:51, xxxxxxxx wrote:

          Thank you! I expected exactly something like this in Maxon SDK.

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

            On 10/05/2017 at 06:35, xxxxxxxx wrote:

            Glad it helped.
            That's why I made that website. To fill in the missing pieces.

            -ScottA

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

              On 12/05/2017 at 03:34, xxxxxxxx wrote:

              Hello,

              you can also find various examples on ToolData plugins on GitHub.

              best wishes,
              Sebastian

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