I used to use
bpy.ops.import_scene.obj() in my addon.
which can import .obj object and set it a selected object.(not active)
But in Blender 4.0. this does not work any more.
I know the code
bpy.ops.wm.obj_import() does the similar thing. but this code import an obj and set it active which I do not wish.
So I want to know what is the
bpy.ops.import_scene.obj() in Blender 4.0, or is there a way to change the
bpy.ops.wm.obj_import() code not import an obj in active mode?