AddFCurve2 (Parameter)

Description

Creates and connects an FCurve to this parameter. This method differs from the Parameter.AddFCurve method in that only the key value array and function curve type are required as arguments. The key value array contains the key frame and value only, the tangents are calculated automatically.

If no type argument is specified, then the type of fcurve added will be based on the parameter's type (which is configured in the parameter's definition). You can override the default fcurve type associated with a parameter by adding the SPDL attribute 'FCurveType = Standard;' or 'FCurveType = Integer;'.

By default standard fcurves will be created for parameters of type: siDouble, siFloat, siInt4, siInt2, siByte, siUInt4, siUInt2 and siUByte (see siVariantType for further details on types). If the parameter represents a boolean, then a boolean fcurve will be created.

Scripting Syntax

Parameter.AddFCurve2( [KeyValueArray], [Type] )

C# Syntax

FCurve Parameter.AddFCurve2( Object in_KeyValueArray, Object in_Type );

Parameters

Parameter

Type

Description

KeyValueArray

Variant

The array may be a 1- or 2-dimensional array. For 2 dimensional arrays the first dimension must define the key values. The key value consists of the key time (in frames) and the key value ( in value units ). For bezier fcurves the tangents will be calculated automatically.

Type

siFCurveType

The type of the FCurve.

Default Value: defined by parameter type

Return Value

FCurve

See Also

Parameter.Source

Parameter.AddFCurve

Examples

• See Parameter.AddFCurve2.1.js



Autodesk Softimage 2011