Python file path

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
  11 November 2012
[SOLVED]Python file path

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 greatThanks for any reply

Last edited by alexx600 : 11 November 2012 at 04:30 PM.
 
  11 November 2012
context.blend_data.filepath

Is that what you are looking for?
__________________
-- http://www.rendicity.com
 
  11 November 2012
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

Last edited by alexx600 : 11 November 2012 at 04:29 PM.
 
  11 November 2012
Thread automatically closed

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.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 11:54 PM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.