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

Comment viewing options

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

Comment viewing options

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