PDA

View Full Version : Python file path


alexx600
11-27-2012, 08: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:)

cinneide
11-28-2012, 07:47 AM
context.blend_data.filepath

Is that what you are looking for?

alexx600
11-28-2012, 03: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:)
//Edit
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, 03: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.