Featured post

new redirect for blender.org bpy docs.

http://www.blender.org/api/blender_python_api_current/ As of 10/11 november 2015 we can now link to the current api docs and not be worr...

Showing posts with label relpath. Show all posts
Showing posts with label relpath. Show all posts

October 01, 2012

Relative path and Absolute Path

I've needed these a few times lately, bpy provides convenience functions to convert relative path to absolute path and absolute path to relative path
abspath = bpy.path.abspath(..takes relative path..)
relpath = bpy.path.relpath(..takes absolute path..)