Notifications
Clear all

[Closed] how to close a spline

Hello:)
I have got small problem.
There is any easy way to close a single spline using Maxscript?
//edit
I found

close new_spline 1
4 Replies
sp = splineShape()
addnewSpline sp
addKnot sp 1 #corner #line [20,10,0]
addKnot sp 1 #corner #line [-20,11,0]
addKnot sp 1 #corner #line [-20,-11,0]
addKnot sp 1 #corner #line [20,-10,0]
close sp 1

This was found in maxscript help. Searching “Spline”. Its recommended to look there first. lots of great information.

Thanks. I wrote my post too fast,You are right:) As you said there answer was in MaxScript help. Next time, I will be searching more exactly. Anyway thanks a lot for help:)

you need to add

updateShape sp

or that snippet will crash max (10) if you try to subobject edit the result

You are right,there was error.Thanks for advice:)