XM Magdalena 3D print, GGeorgy (3D)
LC #42 Pipers Alley

View Full Version : Python file path

11-27-2012, 09:05 PM
I have also problem which python.I do not have any idea how I can get blend file path into a simple string object?I tried bpy.ops.file.directory but this function wasn't a good idea. If there is somebody who know the answer it would be great:)Thanks for any reply:)

11-28-2012, 08:47 AM

Is that what you are looking for?

11-28-2012, 04:02 PM
Hi:) I used bpy.data.filepath:) Probably I could use context.blend_data.filepath if i only changed the context. In bpy.data.filepath I don't have to do that so code is simpler.However thanks for reply:)
I was wrong. I thought that must change context but I don't have to.I didn't write bpy.context.....
Anyway problem is solved:)

CGTalk Moderation
11-28-2012, 04:02 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.