def get_object_animation_indices(obj):
    """Get the animation indices of the object."""
    animation_data = obj.animation_data
    fcurves = animation_data.action.fcurves
    fcu = fcurves[0]
    kp_indices = [int(kp.co[0]) for kp in fcu.keyframe_points]
    return kp_indices