Jiba wrote:
When saving, soya ALWAYS saves in soya.path[0].

I think that's broken behavior.

My directory structure (and likely the directory structure of anyone seriously using Soya with a substantial amount of art assets) is:

data/
data/environment
data/environment/obj
data/environment/images
data/environment/shapes
data/environment/worlds
data/environment/materials
data/character
data/character/obj
data/character/images
data/character/shapes
data/character/worlds
data/character/materials
data/interface
(etc.)

data/environment, data/character, data/interface, etc. are all added to my soya.path, so they all get searched when looking for an asset.

If Soya loads an OBJ file from data/character/obj, it should save the resulting shapes, worlds and materials to data/character/shapes, data/character/worlds and data/character/materials. It's only logical. You know what directory you're currently in, because you just loaded the asset from there, so traverse back one directory (to ..) and then go into shapes, worlds or materials and save the data there.

What possible reason could there be to do it any other way, other than not expecting people to actually use Soya with lots of art assets and want to organize them better?

Thanks,
Vito

Reply via email to