How to append an object from another blend file to the scene using the Blender Python API

The Blender Python API provides the ability to append or link objects from another *.blend file to the current scene using the “append” command.

To append an object (for example – a mesh) from another .blend file, we need to do the following:

  1. Specify the full path to the blend-file from which to get an object.

  1. Specify the relative path to the required object in the internal hierarchy of the blend file.

  1. Specify the name of the required object.

  1. And execute the “append” operator with three required parameters:

After executing this code, by clicking the “Run Script” button, we will append the “Suzanne” mesh from the specified 11.blend file into the current scene.

Full code:

Nikita

Author: Nikita

Blender add-ons developer and articles writer.