Anyway, this is part of my script, when I run it, first point (corner) doesn't have handles at all (i guess they are hidden in the point itself), second has handle only from left, 3rd is ok and 4th is ok too.
rollout MainSettings "Main settings"
rollout ControlCurves "Curves:"
CurveControl CurveControlCurves ""
height:250 width:330 align:#center numCurves:3 visible:true x_range:[0,100]
y_range:[-3,3] scrollValues:[0,100] commandMode:#move_xy asPopup:false
on ControlCurves open do
local colors = #(red, green, blue)
local names = #("Left","Middle","Right")
For I=1 to 3 do
local PointPosition = #(0.0,33.33,66.66,100.0)
CurrentCurve.name = names[I]
CurrentCurve.color = colors[I]
CurrentCurve.numPoints = 4
For J=1 to 4 do
CurrentCurvePoint = CurrentCurve.points[J]
CurrentCurvePoint.value = [PointPosition[J],0.9]
CurrentCurvePoint.inTangent = [-10.0,0.0]
CurrentCurvePoint.outTangent = [10.0,0.0]
CurrentCurvePoint.lock_x = true
CurrentCurvePoint.bezier = true
CurrentCurvePoint.corner = false
zoom CurveControlCurves #all
TestScript = newRolloutFloater "Test script" 350 605
addRollout MainSettings TestScript
addRollout ControlCurves TestScript
Could anyone please tell me, why is this happening?
A bonus question - is there a way how to disable adding and deleting points in CurveControl?