PDA

View Full Version : Drawing a line between points


Bozar
03-24-2006, 01:07 AM
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

stuh505
03-24-2006, 01:48 AM
There are a bunch of functions prefixed with "gw" that do this, look for it in the manual you will see them

Bozar
03-24-2006, 10:35 PM
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?

Bozar
03-27-2006, 10:50 PM
I'm still stuck on this :sad:

Can you be a little more specific? Calling gw.PolyLine() kinda works but not really.

Aearon
03-28-2006, 10:37 AM
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

CGTalk Moderation
03-28-2006, 10:37 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.