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
    • Admin
    • Login

    Q Tooldata: Select points

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 279 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 28/01/2016 at 11:59, xxxxxxxx wrote:

      Hi
      I'm trying to make a Tooldata plugin where the user picks a number of points on existing geo, then presses enter or some key and then a spline is generated from the points in the order the user picked them.

      I thought i'd use the MouseInput method to gather the points but i don't understand how to get and select the points the user selects. How does point selection work in a tooldata plugin?

      Any help appreciated
      Bonsak

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

        On 28/01/2016 at 12:47, xxxxxxxx wrote:

        It's been a while since I looked at the SDK, but if I remember correctly I think you'll need to use
        ViewportSelect.GetNearestPoint

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

          On 28/01/2016 at 13:08, xxxxxxxx wrote:

          Hey! That worked wonders.

          Thanks a lot
          Bonsak

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