Say, I have an object with multiple shapekeys on it.

Unchecking "relative" option gives me "evaluation time" parameter. And the last shapekey has exact maximum value of the "evaluation time" parameter

How can I get this maximum value via python? (screenshot


1 Answer 1


If the keys are absolute, rather than relative, they are maintained in sorted order, by time frame. If you want to find the last key from the active object, use


to access the last shape key in the sequence. It will be the one with the maximum value. The field that contains the values is frame, so the maximum value will be found as


Obviously, you can replace bpy.context.active_object by whatever object you want to find the value for.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .