can't get smooth on vextex spline

Hello

I made a little script to make a spline between choosen vertex in reordered selected splines. It seems to works but I can't manage to turn vertexes final spline to smooth.
Can somebody help ?

" try destroyDialog rlMover catch()
global rlconnect = rollout rlconnect "Mover"
(
button butconnect "GO" pos:[2,2]
spinner spX "X " width:60 range:[1,100,1] type:#integer pos:[55,5]
on butconnect pressed do
(
ss = SplineShape pos:[0,0,0]
addNewSpline ss
names_array = for i in $ collect i.name
sort names_array
for a = 1 to names_array.count by 1 do
(
node_by_name = getNodeByName names_array[a]
selectMore node_by_name
knotPos = (getKnotPoint node_by_name 1 spX.value)
addKnot ss 1 #corner #line knotPos
)
updateShape ss
ss
)
)
createDialog rlconnect 160 25"

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Graph's picture

well you can always normalize

well you can always normalize it but the corner type transitionMethod is by definition not smooth ;)

Raphael 'Insanto' Steves
http://Graph.Net84.Net

titane357's picture

:-) yes, I think about this

:-)
yes, I think about this too :-)
But what I don't understand is why if I use #corner, I can't smooth it afterwards... ?

Graph's picture

addKnot ss 1 #corner #line

addKnot ss 1 #corner #line knotPos

try #smooth #curve

Raphael 'Insanto' Steves
http://Graph.Net84.Net

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.