FCurve.Interpolation

説明

標準の F カーブの補間タイプを(siFCurveInterpolation列挙型の値の 1として)設定したり、戻したりします。

詳細については、Softimage ユーザ ガイドの「F カーブの補間および外挿」を参照してください。

JScript の例

/*
        This example demonstrates how to get an FCurve's interpolation.
*/
Main();
function WriteInterpolation( in_interpolation )
{
        switch (in_interpolation) {
                case 1 :
                        return "siConstantInterpolation";
                case 2 :
                        return "siLinearInterpolation";
                case 3 :
                        return "siCubicInterpolation";
                default :
                        return "Invalid Interpolation type";
        }
}
function Main()
{
        var oCube = ActiveSceneRoot.AddGeometry( "Cube","MeshSurface" );
        var aValues = 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 );
        var oFCurve = oCube.PosX.AddFCurve2( aValues );
        LogMessage( "FCurve interpolation : " + WriteInterpolation(oFCurve.Interpolation) );
}
// Outputs:
//INFO : FCurve interpolation : siCubicInterpolation