SetKnotSelection behavior.
Good afternoon. I'm trying to assign a Linked XForm modifier, every vertex in selected spline.
The scene includes a spline, and the selected tab is the Modifier Panel.
After the end of the script, and exploring the Modifier Panel, I see that is not the choice of the current vertex of the spline.
----------------------------------------------------------------------------------
ArrayknotsCoordinate = #()
spl = selection[1]
intNumKnots = numKnots spl 1
for t=1 to intNumKnots do (
NamePoint = spl.name + "_Point" + t as string
r = getKnotPoint spl 1 t
carPoint = Point pos:r name: NamePoint
addModifier spl (Edit_Spline ())
subobjectLevel = 1
setKnotSelection spl 1 #(t)
addModifier spl (Linked_XForm ())
carMod = modPanel.getCurrentObject()
carIndex = modPanel.getModifierIndex spl carMod
spl.modifiers[carIndex].Control = carPoint
)
-----------------------------------------------------------------------------------
What is the reason ???
Comments
Found the solution in the
Found the solution in the article
http://help.autodesk.com/view/3DSMAX/2015/ENU/?guid=__files_GUID_6FEB5CF...