Page 1 of 1

Relative file paths

PostPosted: Saturday, 14.September 2013, 13:21
by Skinnytorus
A small (but imho very handy) feature suggestion:
Ability to use *.wz4 file location as the basis for searching assets i.e. using relative file paths. I think of it as an option in wz preferences.

It should work like this: Say, I want to share with you a file with assets (imported models, textures, *.ogg, etc.). I zip the entire project folder and send it to you. You unzip the folder, open the wz4 file and you don't have to adjust the project folder path in Document options. Assets are found automatically based on the location of the *.wz4 file.

Re: Relative file paths

PostPosted: Tuesday, 01.October 2013, 09:36
by ikam
it can already works in relative path.
When importing ressources (texture, mesh, ogg) if we don't specify an absolute path (just set the filename) it will search in the current folder.

Re: Relative file paths

PostPosted: Tuesday, 01.October 2013, 09:52
by Skinnytorus
What if we have sub-folders? And as far as I remember using Open dialog sets an absolute path to the asset in Import operator.
Those are just speculations, i can't check how it works now. Again, excuse me - I don't have wz4 within reach...

Re: Relative file paths

PostPosted: Tuesday, 01.October 2013, 17:49
by Skinnytorus
Checked that. It works only when the absolute project path is set in Project Path field in document options.