Viewing data from another .blend file using temp_data context

If, after opening one .blend file, we need to view data from another .blend file, we can use the temporary data (temp_data) context.

First, let’s determine the path to the file being viewed:

Create a temporary data context “temp_data” for the specified file:

However, if we now try to view the contents of the temporary file, we will get an empty list:

To access the contents of the “temp_data”, it must be loaded using the temp_data.libraries.load() function:

Now we can view the contents of the “temp_data”:

After the block “with as temp_data” completes, all temporary data and temporary context will be automatically cleared.

Full code example:

0 0 votes
Article Rating
Notify of

0 Comment
Inline Feedbacks
View all comments