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