About this site
ScriptSpot is a diverse online community of artists and developers who come together to find and share scripts that empower their creativity with 3ds Max. Our users come from all parts of the world and work in everything from visual effects to gaming, architecture, students or hobbyists.
Comments
Thanks Miauu... If I
Thanks Miauu...
If I understand well, you create an array of the one selected knot, so you know which index is used by this knot (index =1)
very clever... I hate arrays, but so powerfull...
so I have what I want : create a new knot at the end of my spline (don't work for begin of the spline)
new_spline = $
selKnotsArr = getKnotSelection new_spline 1
-- check if only one knot is selected
if selKnotsArr.count == 1 do
(
skp = getKnotPoint new_spline 1 selKnotsArr[1]
aaa = addKnot new_spline 1 #corner #curve skp
updateshape new_spline
setKnotSelection new_spline 1 #(aaa)
)
.
I did not create the array. getKnotSelection returns the selected knots as array.:)
Tools and Scripts for Autodesk 3dsMax
.
Tools and Scripts for Autodesk 3dsMax