getting current .blend file

Scripting in Blender with Python, and working on the API

Moderators: jesterKing, stiv

Post Reply
Posts: 53
Joined: Fri Oct 18, 2002 1:35 am
Location: Oceanside, California

getting current .blend file

Post by Sutabi »

I know in the lib module you can get the filename of the .blend you are append, but what about the current .blend you are using.

Posts: 289
Joined: Wed Oct 16, 2002 2:38 am

Post by z3r0_d »

Code: Select all

import Blender
print Blender.Get('filename')
note that if no file has been loaded this is the last file loaded on your previous blender session... as in it is the file you get when you hit control+o

Post Reply