Q Tooldata: Select points



  • 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



  • 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



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

    Hey! That worked wonders.

    Thanks a lot
    Bonsak


Log in to reply