This question probably has a simple fix, and most likely doesn't even need it's own thread... But, the truth is, I can't find an answer for this type of question anywhere. I've noticed that I can get a position of a point in the Maxscript Help, but is there a way I can get the index of a point? If so, how can I reference the start and end points? The lines I'll be working with are only single segments, so no fancy curves.
Thanks for your help. My apologies about this thread.
Replies
I'm well aware that those two functions exist. But, how can I get the index? Those only return how many knots there are, and the actual position of the points. I just want the index of the first and last point.
If you use a For loop with some variable going from 1 to numKnots, the variable will point to the index you want when your input and getKnotPoint positions are equal. (I'm not sure if the indexes start at zero or 1, I'm thinking 1 in MaxScript).
Thank you for the explanation of those functions. I did not realize that they could be used in that way. I really appreciate it. Thank you.