0

Is it possible to define the .blend path in the wm.append command to open directly in the selected blend file ?

pistiwique
  • 1,106
  • 9
  • 22
  • Yes, I can't test it at the moment, but this should work platform independent. Alternatively you can use bpy.data.libraries.load (lower-level API) for this as mentioned here: http://blender.stackexchange.com/questions/17876/import-object-without-bpy-ops-wm-link-append – p2or Jul 26 '16 at 11:42
  • I can't use bpy.data.libraries.load because i need to keep the UI interface to keep the choise to the users which library and which data he wants to append. I tried with bpy.ops.wm.append('INVOKE_DEFAULT', directory = my_blend_path). it works but if I append another with a different path , and then I try again with my custom directory, the append concerve the last path used . So is it possible to reset the previous append path before add my custom directory ? – pistiwique Jul 26 '16 at 13:47

0 Answers0