draw your points in a for loop
pseudo:
get all points
for i in range(len(points)):
if i < len(points):
GLLine(points[i].x, points[i].y, points[i].z)
GLLine(points[i + 1].x, points[i+1].y, points[i + 1].z)
On Mon, Feb 22, 2010 at 2:14 PM, shawnpatapoff <[email protected]>wrote:
> Hey All,
>
> I have an idea for a plugin, that draws a line from point a to b. Easy
> enough...
>
> The question is this, if I had one locator, with several line segments
> in it what would be the best way.
> Basically, right now I'm iterating through all my points in space and
> creating a new locator for each set of points...This doesn't seem very
> good.
> Is there a better way?
>
> Cheers,
> Shawn
>
> --
> http://groups.google.com/group/python_inside_maya
>
--
http://groups.google.com/group/python_inside_maya