how to import a .bvh files using a python script ?

i want to import a .bvh files from Local Disk(D:) using python script (text editor).
how to do that ?

this is the operator with all possible parameters:

bpy.ops.import_anim.bvh(filepath="", filter_glob="*.bvh", target='ARMATURE', global_scale=1, frame_start=1, use_fps_scale=False, use_cyclic=False, rotate_mode='NATIVE', axis_forward='-Z', axis_up='Y')

thanks ! :slight_smile:
how to write the file path eg : ?

well like so i guess?

“C:\ he\path\file.ext”
r"C: he\path\file.ext"

maybe relative works as well