Selecting specific vertex numbers in attached splines
I don't know if there's anything like this already out there, but I couldn't find it if so. A friend of mine asked if this was possible, and I couldn't think of any standard Max operations to handle it, so it must be a scripting solution.
The problem is, he has a group of splines being used as guide splines for hair and fur. Each spline consists of just one segment (two vertices). All segments are attached as one editable spline, so in subobject mode, the bottom vertex of each spline is vertex 1, and the top is vertex 2. Is there a script which would allow him to easily select vertex 2 on each spline in subobject mode all at once? Obviously, he could use the paint selection tools, and different viewport perspectives to get the required selections, but seems like it would just be so much easier if there were a way to grab every vertex that was assigned to number 2, or 1, etc.
Here's a screenshot of what the splines look like... (see attached). It's basic Hair and Fur guide splines generated by maxscript.
Attachment | Size |
---|---|
file_505479.jpg | 296.67 KB |
Comments
Script
That is exactly what I was needing. I appreciate LuxXeon for posting this request and really am grateful for your posting of this script. This does exactly what I was needing to do!
...
Something like this?
bga
Thank you!
That script worked perfectly. Thanks for your help, barigazy!
https://www.artstation.com/luxxeon
http://luxxeon.cgsociety.org/
https://www.youtube.com/user/luxxeon3d
...
My pleasure ;)
bga
Save me a huge amount of aggrivation
I really wanted to say thank you once again for your script. I have never been good with programming of any sort. I was able to complete the multiple fur pieces for a total of almost 4 million hairs in less than a few hours! Hat's off to you, sir!