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

    Handle Question

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 310 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

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

      On 10/05/2012 at 15:49, xxxxxxxx wrote:

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

      ---------
      Hey Everyone,

      I am wondering if this is possible and if so what in the SDK should I look for to achieve it.

      I have sweepNurbs object that uses a spline object that I have allocated.  I fill the spline object with points and move them to where I want them.  I then return the sweep nurbs through GetVirtualObjects();

      My question is,  I would like to allow the user to have direct access to the points in the spline object which is a child of my sweep nurbs.  Is it possible to draw handles that are associated with each point in the spline and then allow the user to move the handle which will move the spline points?

      Essentially I would like to allow users to be able to click on the spline points and move them through my Object plugin.

      Any help you could provide would be great.

      Thanks,

      ~Shawn

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

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

        On 11/05/2012 at 01:04, xxxxxxxx wrote:

        I can't see why that wouldn't be possible. In R13 you'd need to implement Draw(), GetHandle(), SetHandle() and GetHandleCount(). Then you would get the points array for the spline, and draw a handle at each point location. You then need to move the points in accordance with the movement of the handle.

        I recently did a quick tut on my site for an ObjectData plugin which has handles - the code might be useful to you if you haven't done handles before. Here's the link to the relevant page.

        Steve

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

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

          On 11/05/2012 at 03:53, xxxxxxxx wrote:

          Thanks Steve,

          I'll have a look at it later today and see if I can't get it to work right.  🙂

          ~Shawn

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