EvalFCurve

Description

Evaluates and returns the value of the fcurve at a given frame.

Scripting Syntax

    EvalFCurve( InputObj, Time )

Parameters

Parameter | Type | Description
InputObj | String | List of parameters Default Value: Currently selected and marked parameter
Time | Double | Function curves are evaluated at this frame. Default Value: Current frame

Return Value

Returns the value of the function curve at the given frame.

Examples

VBScript Example

    Dim obj, myFrame, myValue
    set obj = CreatePrim( "Grid", "MeshSurface" )
    myValue = 1
    myFrame = 1
    SetValue obj & ".kine.local.pos.posx", myValue, myFrame
    SaveKey obj & "/kine.local.pos", myFrame
    myValue = 3
    myFrame = 3
    SetValue obj & ".kine.local.pos.posx", myValue, myFrame
    SaveKey obj & "/kine.local.pos", myFrame
    myFrame = 2
    myValue = EvalFCurve("Grid.kine.local.posx", myFrame)
    logmessage "value = " & myValue & " at time = " & myFrame

See Also

FCurve.Eval

Autodesk Softimage v7.5