I have some objects, linked from other blend-files. I want to get access to their paths in Python, but I can't understand, how to find this data. Any ideas?

enter image description here


These linked files are in:


You can have their filepath with for instance:

[lib.filepath for lib in bpy.data.libraries]

The path is relative to the current blend file, so you can have absolute path with:

[bpy.path.abspath(lib.filepath) for lib in bpy.data.libraries]

In the documentation:

  • $\begingroup$ Thanks! It works. $\endgroup$
    – Mapper720
    Sep 15 '20 at 17:30
  • $\begingroup$ If that works, consider to accept the answer @Mapper720, thanks. How this site works: blender.stackexchange.com/tour $\endgroup$
    – brockmann
    Nov 24 '20 at 18:28

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.