Select odd/Even Splines segment
Here's a quick script that
Here's a quick script that should do what you want assuming you only have 1 spline within your object (because it only works on the first spline sub object currently). In the example I tested I just created a quick line object, went to segment subobj and divided it, then ran the script.
To run this script, simply select your spline, and go to Maxscript / Run Script and run the attached file.
selsegs = #() numsegs = (numSegments $ 1) for i = 1 to numsegs do if (mod i 2) == 1 do append selsegs i --odd numbers only setSegSelection $ 1 selsegs
| Attachment | Size |
|---|---|
| snippet-spline_select_OddSegments.ms | 158 bytes |


Hi Guys, i know this might be maybe a line, but I cannot get it work, I need the code to select odd/even spline segement.
Per example I want to do a Road Paint, so I create a spline, then Divide it, and then I have to select manualy every line in between to delete it and make the white painting. I know there should be a pretty easy script to do that
Thanks a Lot!!
Tricota