connect vertex/knots in a shape with 2 splines
Hello. Basic question (but i can't find it on the internet)
I have a shape with 2 splines: /sp1v1--sp1v2/ /sp2v1--sp2v2/.
Now i want to connect sp1v2 with sp2v1.
something like this:
select $MyShape
subObjectLevel = 1
splineOps.startConnect (1,2) (2,1)
can someone give me a hit? tnx
Comments
follow-up question (i have a
follow-up question (i have a problem selecting things)
It works untill the last line.
But "$GB1#(2)","(3 2)", "the-other-spline" gives me errors.
Can you tell me whats wrong
(I have the book "maxscript essentials", but these essential-syntax things are missing..)
tnx.
Studio3DR.nl
Some of my scripts and MCGs :: 3ds Max SDK Intro for Scripters
.
damn, sure :))
fresh max versions have shape booleans
.
if you want to boolean shapes then you're in trouble.
.
Tools and Scripts for Autodesk 3dsMax
yes, tnx a lot Miauu. my
yes, tnx a lot Miauu.
my shape is complexer as in the startpost, but i think i can adjust your code for that.
Studio3DR.nl
.
AddAndWeld is a global shape operation. It will weld any end knots that are in tolerance distance from each other. You probably better use splineOps.weld to weld only the selected knots
.
Tnx Jahman.. if i run the script a second time i'm having trouble. Ill try your solution.
Studio3DR.nl