キー値の両側のタンジェンシ値を設定します。
注:キータンジェントは標準F カーブにのみ設定できます。他のすべての F
カーブでは、エラー(COM/C++ではE_FAIL)が戻されます。
FCurve.SetKeyTangents( Tangents ); |
| パラメータ | タイプ | 詳細 |
|---|---|---|
| タンジェント | DoubleのArray | タンジェントを含む1D 配列(LeftTanX, LeftTanY, RightTanX, RightTanY) LeftTanX および RightTanX はキーフレーム内にある必要があり、LeftTanY および RightTanY は有効なキー値である必要があります。 |
/*
This JScript example demonstrates how to set key tangents on an fcurve.
*/
var oNull = ActiveSceneRoot.AddNull();
var oFCurve = oNull.posx.AddFCurve2( new Array( 1, 10, 2, 20, 3, 30 ) );
// Set Zero sloped tangents on keys
oFCurve.SetKeyTangents(
new Array(
-0.5, 0, 0.5, 0,
-0.5, 0, 0.5, 0,
-0.5, 0, 0.5, 0
)
)
|