Notifications
Clear all
[Closed] how to close a spline
Dec 09, 2012 10:33 am
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
Dec 09, 2012 10:33 am
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.
Dec 09, 2012 10:33 am
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:)
Dec 09, 2012 10:33 am
you need to add
updateShape sp
or that snippet will crash max (10) if you try to subobject edit the result