open/break ~400 splines
Hi there,
this should be a really simple script. But I can't fathom out how to do this:
I need to open up a couple of hundred splines. They are all closed but I need them now to be open. I use them as a spline for forest pack. Exploding them will not bring the right result. They need to stay intact, but need to be open.
I was thinking of selecting every first vertex of every spline and braking that.
However I don't know how to select the vertex by number nor what the break function is. MaxScript recorder will only show me the subObjectlevel = 1 but not what happens after that.
Any help is much appreciated
Comments
.
For some reason ths code below will open only the last spline in the selection.
TRy to fix it. :)
Tools and Scripts for Autodesk 3dsMax
You need to add
You need to add "windows.ProcessPostedMessages()" instead of "updateshape s"
Thanks to denisT https://forums.cgsociety.org/t/max-script-help-multi-object-selection-to...
Youtube, Gumroad
Correct Link
https://forums.cgsociety.org/t/breaking-selected-spline-knots/1721684
Youtube, Gumroad
.
processPostedMessages forces max to process GUI messages, why would you need it here?
just move updateShape out of the loop and that's it
its not working with
its not working with updateShape even its out of the loop !!
it works with 1 shape only and not applied to other selected shapes
Youtube, Gumroad
.
oh, I see now that it uses modify mode for some unknown reason. In this case you're right that processPostedMessages is needed before switching to next shape.
I'd rather add another extra knot if the spline is closed and just make it open afterwards. This way it should work without switching to modify mode (which is always slower)
smth like this should work