PDA

View Full Version : How to make all image-texture-paths relative?



GeeN
08-May-06, 13:04
Hi, all.
Normally, I work on the same .blend file on two different PCs, therefore the absolute paths of my image textures are different, so I have to use relative paths. My texture images are in a folder next to the .blend.
So far, I achieved this this by correcting the image paths manually to something like:

\\Texture\image.jpg
Although, sometimes it was automatically like that.

1)How can I achieve, that in a given .blend file all of my images use relative paths automatically?
2)Can I set this before I start the project?
3)Can I set this relative path for many images after they were attached to the objects via absolute path?

Help will be appreciated. Thanks.

GeeN
19-May-06, 13:36
About one week and ... no answer... :(
Should I have asked this in another forum? :(

z3r0 d
20-May-06, 12:50
it could, perhaps, be done with python
[I haven't looked into it yet]

or you could pack data, save, then unpack to \\textures\ [it's one of the options when you unpack... unpack to current directory or something]

GeeN
21-May-06, 11:44
Thank you z3r0 d for answering.

It seems to me that the answers to my questions are not something that everyone knows but me.

What puzzles me a lot, however, is that sometimes when I load an image it is detected on a relative path while sometimes it is on an absolute path. I think there ougth to be something that sets this behavior internally.
I feel that there must be a switch or button somewhere to control this, for it cannot just happen randomly. (Should this really be set with an external Phyton script ?)

Yes, packing and unpacking work, but what makes it uncomfortable is that when the image name is longer than blender likes it, they are truncated, which practically means that it is going to have not only a different name but can also lose its extension (under Windows) which is very unpractical, because I will not know what kind of image it was (jpg, png, tga and so on ...)

So I am still curious, how to set these. :confused:
Answers will be appreciated.

zhone
27-Jul-08, 22:58
You could use "File->External Data->Make All Paths Relative" and re-save your blend file, or
manually change the path to relativity, such as "..\texture\texture1.jpg" or "texture\texture2.tga".
Hope it helps.

xray51493
28-Jul-08, 01:01
zhone this topic is over 2 years old. check the date of the last post before posting next time.

kdmccoy
17-Dec-08, 22:49
zhone, even if it's an old post, thank you very much for answering - it's just what I was looking for for the past 10 minutes :yes:

jezza
18-Dec-08, 00:29
whilst it's an old post it's also a pretty important point that I just read about in hess's book.
Under user options/file paths there's a button to set "Relative Paths Default" too

hike1
15-Mar-09, 23:32
Quote
Under user options/file paths there's a button to set "Relative Paths Default" too
Unquote


quote

http://www.blender.org/development/release-logs/blender-246/external-filepath-tools/
All my textures were that ugly pink, is there a way to change that color?
I had absolute paths set, why this is the default is beyond me, so
I set them to relative in the image/uv window and also user prefs
file paths, then I clicked on each texture in the file list in uv/image
editor, searched for the ones I couldn't find, put them all with the
blend file, eventually most of them appeared when I clicked on them
in the uv/image editor.

quote
when the image name is longer than blender likes it
unquote

what's the limit, I thought it was 20 characters.

Mike4Linux
04-Aug-10, 04:12
the external data option doesn't seem to work.

So how to make a dozen texture files relative?

Many thanks
Michael