def clear_bone_animation_data(bone, start_frame, end_frame😞
for frame in range(start_frame, end_frame+1😞
cotroller = rt.GetPropertyController(bone.controller, 'Position')
rt.SelectKeys(cotroller, frame)
rt.DeleteKeys(cotroller)
#delete rotation keys
cotroller = rt.GetPropertyController(bone.controller, 'Rotation')
rt.SelectKeys(cotroller, frame)
rt.DeleteKeys(cotroller)
for some bones, my script can work, but we i use it in biped bone,it not work