EvalFCurve
 
 
 

EvalFCurve

Description

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

Scripting Syntax

oReturn = EvalFCurve( InputObj, Time );

Return Value

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

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

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