list blend-file content


How do i list all objects name from an external blend-file?

for example: i’m currently working in myfirstfile.blend and i want to list all objects name from a file called mysecondfile.blend.

and the content of mysecondfile.blend is:
–> objects
-----> Cube
-----> Cube.001
–> materials
-----> Material

so the script would list (“Cube”, “Cube.001”)


EDIT: Solved:

please mark you thread as [Solved] above of post #1 there is a button for ‘thread’ options :wink: (a author gets other option then a reader)