FCurve.GetMinKeyValue

導入

v6.0

詳細

F カーブの最小キー値を戻します。戻される値のタイプは、次に示すように、使用される F カーブのタイプによって異なります。

標準およびロー F カーブは、Double 値(VT_R8)を戻します。

整数 F カーブは、LONG (VT_I4)を戻します。

ブール F カーブは、Variant Bool 値(VT_BOOL,VARIANT_TRUE,VARIANT_FALSE)を戻します。

スクリプト 構文

oVariant = FCurve.GetMinKeyValue();

戻り値

Variant

JScript の例

// 
// This example illustrates how to get the smallest key value for the fcurve.
// Create a new scene
NewScene(null, false);
// Create a null
oNull = Application.GetPrim("Null");
// Get the posx parameter of the null
oPosX = oNull.posx
// Create array of time-value pairs
aKeys = new Array( 0.00, 5.00,
                                1.00, 6.00,
                                2.00, 7.00,
                                3.00, 8.00,
                                4.00, 9.00,
                                5.00, 10.00 );
// Create an empty FCurve
oFCurve = oPosX.AddFCurve2( null, siStandardFCurve );
// Set the fcurve keys
oFCurve.SetKeys( aKeys );
Application.LogMessage( 'Smallest key value: ' + oFCurve.GetMinKeyValue(), siInfo );
// Produces the following output:
//
//INFO : Smallest key value: 5

関連項目

FCurve.GetMaxKeyValue FCurve.GetMidKeyValue FCurveKeyCollection.GetMinKeyValue