I try to use bpy.ops.wm.append() to import everything from Objects section of a source *.blend file into my master *.blend file. Here’s my code:

blendfile = "Z:\Source.blend"
section   = "\\Object\\"
bpy.ops.wm.append(directory = blendfile + section)

I get the following error:

Error: 'D:\Source.blend\Object\': nothing indicated

It seems that Blender wants me to specify an object, but I’d like to append everything from the Objects section.

  • $\begingroup$ I ran blender with --debug-all and the command generated when I selected all in the append object folder included each object separately in a files array. It looks like you will have to get a list of all the objects and then request them all. $\endgroup$ – rob Jun 4 '19 at 13:24
  • 1
    $\begingroup$ Thanks! That actually helped! $\endgroup$ – SagRU Jul 12 '19 at 13:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.