[Bf-taskforce25] Unify how images are exported with 3D formats

Arystan Dyussenov arystan.d at gmail.com
Sat Jul 4 13:02:50 CEST 2009


Hi,

I'd like to make a small proposal to unify the way images are exported along
with 3D format file (OBJ, FBX, etc.).

It'll be a simple function that works like this:

For each image if it's "below" current .blend file directory, rebuild the
same dir structure in the target dir.
For example //texture/foo/bar.png becomes texture/foo/bar.png in target dir.

If an image is not "below" current .blend file directory, disregard it's
path and copy it in the same directory where 3D file goes.

This logic will help ensure that all image paths are relative and that a
user gets his images in one place. It'll also provide consistent behaviour
across exporters.

I prefer to write it in C, so that the new COLLADA exporter benefits, and
expose to Python through "bpy.utils".

Arystan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.blender.org/pipermail/bf-taskforce25/attachments/20090704/085b6833/attachment.htm 


More information about the Bf-taskforce25 mailing list