08/04/13 03:31:42 hwp7DGGo0
いかん、寝ぼけてるorz
正しくはこちら。cast無茶苦茶だたw
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;
double df = Math.Abs((double)(f2 - f1));
double Param = 2 * (((df - (double)Idx) % df + 1) / df);
pos.TypeSafeValue = ExpressionUtils.Ease( f1, p1, f2, p2, Idx, Param);