[Closed] Drawing a line between points
I am trying to develop a scripted plugin similiar to the Tape Helper. Its a helperwith a starting location followed by a bunch of connected points. I can do everything but the connected part. I can make the mouse tool that adds the points, I just cant figure out how to draw a line connecting them. I dont want to add an actual line to my scene I just want something like what the tape helper has.
Any help will be greatly appreciated!
Luke
There are a bunch of functions prefixed with “gw” that do this, look for it in the manual you will see them
Thanks!
I’m still a little confused though …
If I make the call to gw.PolyLine() in the getDisplayMesh handler it works as long as my object is selected. When the object is deselected the line disapears. Is there a better place to call this function so that the line is always visible?
I’m still stuck on this 🙁
Can you be a little more specific? Calling gw.PolyLine() kinda works but not really.
a robust way to do this is having an extra point helper that has a lookat, you can use the lookat’s viewline to draw your line