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

    Manage points handle for object modifier

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 524 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

      On 26/01/2018 at 13:06, xxxxxxxx wrote:

      Hello,

      I would like to draw some polygons in wireframe mode in the Draw method of a plugins.ObjectData (especially a modifier object), and manage to move the drawn points like in the FFD Object or the Bezier Object.

      Do I have to create one handle per point or is there a other way than the handles ?

      Thanks,

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

        On 29/01/2018 at 02:36, xxxxxxxx wrote:

        Hi Cesar, thanks for writing us.

        With reference to your request, it's relevant to register your ObjectData with both OBJECT_POiNTOBJECT and OBJECT_MODIFIER. This will give you the chance to cast your GeListNode to PointObject (in ObjectData::Init) and the BaseObject to a PointObject in (ObjectData::Draw and ObjectData::ModifyObject).

        A direct application of this approach is shown in the LatticePlane modifier published on our GitHub repo.

        Let me know if any further support is needed.

        Best, Riccardo

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

          On 29/01/2018 at 12:08, xxxxxxxx wrote:

          Thanks, it works like a charm.

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