Maya Mel - Get the driver value from value on an animation curve


#1

Hey! I have an animation curve, and a value on the curve. Im trying to take that value, and get the driver value.

for example:

float $keyVal[] = keyframe -f 4 -q -eval $curveNode[0];
give mes a result of 12.

but I HAVE the 12, and need to get the 4.

so basically the opposite

thanks!