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
    • Recent
    • Tags
    • Users
    • Login

    Mouse Controls

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 218 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 01/09/2009 at 20:19, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:    
      Platform:      
      Language(s) :

      ---------
      What functions should I look for to get the points to relocate to the location where the user clicks?

      Like the brush tool, how do I get the geometry to move based on the location of the mouse cursor?

      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 01/09/2009 at 21:14, xxxxxxxx wrote:

        Tool plugins have access to user clicks in the editor using MouseInput() and GetCursorInfo(). This gives you the coordinates of the cursor and you can check for clicks and drags using the EditorWindow* 'win' argument. You will, of course, need to figure out which points are involved. This could be selected points or the points within a radius of the screen click location.

        There are a few Tool plugin examples in the cinema4dsdk source folder.

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