Guiniture
10-29-2008, 12:54 PM
Hello,
I am hoping that somebody can point me in the right direction with NURBS!
So far I have managed to create CV curves using the following script:
-- create an empty NURBSSet object
nset = NURBSSet ()
-- create a new NURBSCVCurve and set the knots and CVs
c = NURBSCVCurve name:"CV Curve" order:4 numCVs:4 numKnots:8
for k in 1 to 4 do ( setKnot c k 0; setKnot c (k+4) 1 )
cv = NURBSControlVertex [0, 0, 50]
setCV c 1 cv
cv.pos = [-100, 0, 50]
setCV c 2 cv
cv.pos = [-100, 100, 50]
setCV c 3 cv
cv.pos = [0, 100, 50]
setCV c 4 cv
Now I would like to create a simple Uloft surface between two CV curves. I have been looking through the maxscript reference all morning and I cant seem to work out how to perform what seems like a fairly easy operation!
Can anybody help me?? Any ideas of even a point in the right direction would be really useful!
Thanks.
I am hoping that somebody can point me in the right direction with NURBS!
So far I have managed to create CV curves using the following script:
-- create an empty NURBSSet object
nset = NURBSSet ()
-- create a new NURBSCVCurve and set the knots and CVs
c = NURBSCVCurve name:"CV Curve" order:4 numCVs:4 numKnots:8
for k in 1 to 4 do ( setKnot c k 0; setKnot c (k+4) 1 )
cv = NURBSControlVertex [0, 0, 50]
setCV c 1 cv
cv.pos = [-100, 0, 50]
setCV c 2 cv
cv.pos = [-100, 100, 50]
setCV c 3 cv
cv.pos = [0, 100, 50]
setCV c 4 cv
Now I would like to create a simple Uloft surface between two CV curves. I have been looking through the maxscript reference all morning and I cant seem to work out how to perform what seems like a fairly easy operation!
Can anybody help me?? Any ideas of even a point in the right direction would be really useful!
Thanks.
