Page 1 of 1

Image saving path

Posted: Fri Mar 29, 2013 3:22 pm
by dAlex65
If checked or not a "Save full path for images" option, get same result in both case.
For example (rube and json too) --- "file" : "../item/w02_brick1_col.png".
And another problem maybe use "per-sign" instead backslash ...

Re: Image saving path

Posted: Fri Mar 29, 2013 4:34 pm
by iforce2d
Are you changing this setting in the Options dialog, or the Scene settings dialog?

The Options dialog only specifies what the default values should be when you create a new scene.
After that, you can change the setting for each scene separately in the Scene settings dialog.

Re: Image saving path

Posted: Fri Mar 29, 2013 4:54 pm
by dAlex65
Okay, You are right, I was distrait. In Scene option setting working correctly with the full path option.
But why save the last parent directory when not checked this option ? Why not just a filename ?
And what have with the "per<->backslash thing" :) ?

Re: Image saving path

Posted: Fri Mar 29, 2013 7:06 pm
by iforce2d
The path is relative to where the .rube file is saved, so I guess your images are not under the same folder as the .rube file?
If the .rube and the images are both under the same folder as each other, then it seems strange that the ../ is added to the path. This is handled by the Qt libs so I am not sure if I can change it. But it works right?

I'm not sure what you mean by "per backslash" thing... you mean "forward slash"? Maybe you are used to this on Windows? The forward slash is also how Qt forms the file paths, the same way as is done on Mac and Linux.

Re: Image saving path

Posted: Sat Mar 30, 2013 5:47 am
by dAlex65
Allright, understand and accepted all your explanation.
I indeed use Windows, and JSON export from R.U.B.E with own Delphi loader.
At most i will purge image filename string, when file loading. ;)
Have a nice day!