08/04/13 03:22:57 hwp7DGGo0
>>196
ほれ。
PointFProperty pos = (PointFProperty)ExpressionUtils.GetProperty(Property.ThisProperty, "位置");
//第一キーフレーム(f1 = フレーム・p1 = 位置)
int f1 = 0;
PointF p1 = new PointF(40, 30);
//第二キーフレーム(f2 = フレーム・p3 = 位置)
int f2 = 30;
PointF p2 = new PointF(320, 240);
int Idx = Property.Index;
int df = Math.Abs(f2 - f1);
double Param = 2 * (((30 - (double)Idx) % df + 1) / df);
pos.TypeSafeValue = ExpressionUtils.Ease( f1, p1, f2, p2, Idx, Param);