Notifications
Clear all

[Closed] Is getPoint in curveControl Broken?

This title says it all really, I can’t get getPoint (or setPoint) to work with a curveControl.

try(destroydialog testRoll) catch()

rollout testRoll "Test Rollout"
(
	CurveControl msa pos:[10,20] width:380 height:200 x_range:[0,1] y_range:[0,128] numCurves:1
	uiFlags:#(#drawBG, #drawgrid, #ruler, #upperToolbar, #lowerToolbar, #showReset, #constrainY, #xvalue)
	commandMode:#move_xy
)
CreateDialog testRoll width: 400

theCurve = testRoll.msa.curves[1]
insertPoint theCurve 2 (ccPoint [0.5,64] [0,0] [0,0])
zoom testRoll.msa #all
getPoint theCurve 2

Code above thows an error message:No getPoint function for ccCurve.
Am I doing something wrong?

Thanks.

5 Replies

thanks MAX DEVELOPERS! it works in max 2010 and it’s broken in max 2012. some plug-in (not a script) overrides it after the system is loaded.
F*CK! now i have to fix 5-7 tools because of that.

1 Reply
(@denist)
Joined: 11 months ago

Posts: 0

setPoint is not working in max 2012 too.

Sorry I should have mentioned that I’m using Max 2012. Anyway, thanks for looking.

now i have to fix 5-7 tools because of that.

When you say ‘fix’ do you mean there is another way to move points in a ccCurve?

sure:

  p = <ccCurve>.points[<index>]
 <ccCurve>.points[<index>] = p
    

Thanks, better than deletePoint and insertPoint that I came up with.