Notifications
Clear all

[Closed] attaching two splines via script?

is there any way to do this i look at the ms ref, but i only get to spline ops.

  1. startAttach –that only toggles the interface and forces me to pick a node by clicking it with my mouse
    2)attachMultiple –which only toggles the selection Box and forces me to pick a node by clicking on it.

any one know any work arounds??
Cheers,
Los.

4 Replies

The only method I’ve found is addAndWeld it takes three parameters spline 1, spline 2, weld distance threshold

– attach a single spline
addAndWeld spline1 spline2 0.1

– attach multiple splines
for spl in mySplines do
addAndWeld spline1 spl 0.1

Hope this helps

Nice!!! it think this will do it!
thanks alot.
cheers,
Los.

Hey guys, I’m looking for the opposite now, do you know of a simple way to detach splines using maxscript?

i only found a way to launch the detach ui dialog

 rdg

I found this in the ‘hacksawtools’ by Chris Harvey:
to detach splines:
for every spline in the shape by – 1
create new spline
add all the knots of the original spline.
delete the spline

Georg