Delete keys on mesh curves

Moho allows users to write new tools and plugins. Discuss scripting ideas and problems here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
Breinmeester
Posts: 306
Joined: Thu May 13, 2010 2:01 pm

Delete keys on mesh curves

Post 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.
Breinmeester
Posts: 306
Joined: Thu May 13, 2010 2:01 pm

Post by Breinmeester »

I wish I could just do:

Code: Select all

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