Page 1 of 1

Delete keys on mesh curves

Posted: Sun Mar 18, 2012 2:26 pm
by Breinmeester
Hi all,

Im working on something where I need to delete keys on a few channels of a Vector layer:

Code: Select all

mesh = moho:LayerAsVector(targetlayer):Mesh()

        for i = 0, mesh:CountPoints()-1 do
            point = mesh:Point(i)
			point.fAnimPos:DeleteKey(thisframe)
			point.fWidth:DeleteKey(thisframe)
		end
My question is: how do I delete keyframes on the curvature of all points in 'targetlayer'? I cant seem to understand how that curvatures stuff exactly works.

Posted: Mon Mar 19, 2012 10:25 am
by Breinmeester
I wish I could just do:

Code: Select all

point.fCurve:DeleteKey(moho.frame)
Anyone who knows?