pymel.core.nodetypes.ResultCurve

Inheritance diagram of ResultCurve

class ResultCurve(*args, **kwargs)
AnimCurveType = Enum( EnumValue('AnimCurveType', 0, 'TA'), EnumValue('AnimCurveType', 1, 'TL'), EnumValue('AnimCurveType', 2, 'TT'), EnumValue('AnimCurveType', 3, 'TU'), EnumValue('AnimCurveType', 4, 'UA'), EnumValue('AnimCurveType', 5, 'UL'), EnumValue('AnimCurveType', 6, 'UT'), EnumValue('AnimCurveType', 7, 'UU'), EnumValue('AnimCurveType', 8, 'unknown'))
InfinityType = Enum( EnumValue('InfinityType', 0, 'constant'), EnumValue('InfinityType', 1, 'linear'), EnumValue('InfinityType', 3, 'cycle'), EnumValue('InfinityType', 4, 'cycleRelative'), EnumValue('InfinityType', 5, 'oscillate'))
TangentType = Enum( EnumValue('TangentType', 0, 'global_'), EnumValue('TangentType', 1, 'fixed'), EnumValue('TangentType', 2, 'linear'), EnumValue('TangentType', 3, 'flat'), EnumValue('TangentType', 4, 'smooth'), EnumValue('TangentType', 5, 'step'), EnumValue('TangentType', 6, 'slow'), EnumValue('TangentType', 7, 'fast'), EnumValue('TangentType', 8, 'clamped'), EnumValue('TangentType', 9, 'plateau'), EnumValue('TangentType', 10, 'stepNext'), EnumValue('TangentType', 11, 'auto'))
addKey(time, value, tangentInType='global_', tangentOutType='global_', change=None)

Adds a new key with the given value and tangent types at the specified time for curves of type kAnimCurveTA, kAnimCurveTL and kAnimCurveTU.

Parameters :
time : Time

Time at which the key is to be added

value : float

Value to which the key is to be set

tangentInType : AnimCurve.TangentType

In tangent type for the key

values: ‘global_‘, ‘fixed’, ‘linear’, ‘flat’, ‘smooth’, ‘step’, ‘slow’, ‘fast’, ‘clamped’, ‘plateau’, ‘stepNext’, ‘auto’

tangentOutType : AnimCurve.TangentType

Out tangent type for the key

values: ‘global_‘, ‘fixed’, ‘linear’, ‘flat’, ‘smooth’, ‘step’, ‘slow’, ‘fast’, ‘clamped’, ‘plateau’, ‘stepNext’, ‘auto’

change : MAnimCurveChange

Optional cache to store undo/redo information.

Return type:

int

Derived from api method maya.OpenMayaAnim.MFnAnimCurve.addKey

addKeyframe(time, value, change=None)

Adds a new key with the given value at the specified time.

Parameters :
time : Time

Time at which the key is to be added

value : float

Value to which the key is to be set

change : MAnimCurveChange

Optional cache to store undo/redo information.

Derived from api method maya.OpenMayaAnim.MFnAnimCurve.addKeyframe

Undo is not currently supported for this method

evaluate(atTime)

Determines the interpolated output value of Anim Curves of type kAnimCurveTA, kAnimCurveTL and kAnimCurveTU at the specified time.

Parameters :
atTime : Time

Time at which the Anim Curve is to be evaluated

Return type:

float

Derived from api method maya.OpenMayaAnim.MFnAnimCurve.evaluate

findClosest(time)

Determines the index of the key which is set at the time closest to the specified time.

Parameters :
time : Time

Time for which a key index is required

Return type:

int

Derived from api method maya.OpenMayaAnim.MFnAnimCurve.findClosest

numKeyframes()

This method is obsolete.

Return type:int

Derived from api method maya.OpenMayaAnim.MFnAnimCurve.numKeyframes

timedAnimCurveTypeForPlug(plug)

Returns the timed animCurve type appropriate for the specified plug.

Parameters :
plug : PyNode

plug

Return type:

AnimCurve.AnimCurveType

Derived from api method maya.OpenMayaAnim.MFnAnimCurve.timedAnimCurveTypeForPlug

unitlessAnimCurveTypeForPlug(plug)

Returns the unitless animCurve type appropriate for the specified plug.

Parameters :
plug : PyNode

plug

Return type:

AnimCurve.AnimCurveType

Derived from api method maya.OpenMayaAnim.MFnAnimCurve.unitlessAnimCurveTypeForPlug

Previous topic

pymel.core.nodetypes.Resolution

Next topic

pymel.core.nodetypes.ResultCurveTimeToAngular

Core

Core Modules

Other Modules

This Page