I would really to apply this script on multple splines, but I cant get it to work.
As you would imagine I'm a bit of a noob with maxscript, so any help would be really appreciated.
gsl = getsegLenghts $ cum:false byVertex:false numArcSteps:1
heightspline = amax gsl as float
mycylinder = cylinder radius:1 height:heightspline pos:(getKnotPoint $ 1 1)
mydummy = dummy pos:(getKnotPoint $ 1 2)
select mycylinder
lookAtCon=lookAt_Constraint()
showInterfaces lookAtCon --Look at the listener
showProperties lookAtCon --Look at the listener
lookAtCon.appendTarget mydummy 100
lookAtCon.target_axisFlip=false
lookAtCon.set_orientation=true
lookAtCon.target_axis=2
rotList=rotation_list()
mycylinder.rotation.controller=rotList
rotList.available.controller=lookAtCon
select mycylinder
snapshot mycylinder
delete mycylinder
select (for h in helpers where h.category == #standard collect h)
delete $
Thanks