getting current .blend file

Scripting in Blender with Python, and working on the API

Moderators: jesterKing, stiv

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

getting current .blend file

Post by Sutabi » Fri May 20, 2005 2:26 am

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.

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

Post by z3r0_d » Fri May 20, 2005 6:26 am

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