View Full Version : selecting specific points?

03-27-2004, 02:10 PM

ok, I only started with Lscripts today, so hopefuly this isnt gonna be a hard question to answer.

I want to be able to select a point by its point ID.

Ive created a random number generator (between 1 and the maximum number of points) now i wish to get the coordinates of that particular point.

I know I should have "editbegin and editend" in there somewhere, so it will assign each point an id, but im not to sure where that goes either.


pntCnt = pointcount();
randompoint = random(1,pntCnt);

lets say that the random number came out at 58.... how do i get the coordinated of point 58????

Thanks in advance

Rob T

03-27-2004, 03:30 PM
I'm not sure...

myPntPos = pointinfo(points[randomPoint]);
info( myPntPos ); // only for example

03-27-2004, 03:50 PM
Thanks mouse_art

It does exactley what i wanted.

Rob T