- This topic has 1 reply, 2 voices, and was last updated 7 years, 8 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Using SOFA › [SOLVED] Suggestion: local screenshots/ folder
Tagged: 64_bits, Linux_ubuntu, screenshots, SOFA_other, video
Hi all,
Currently (v16.04 & master), runSofa saves screenshots of a simulation into a subdirectory of sofa’s installation. This is very inconvenient for subsequent conversion into videos, as screenshots of any simulation get dumped into the same folder.
I believe it makes more sense to save screenshots into a subdirectory of the current working directory, i.e. next to the sofa scene file:
In applications/projects/runSofa/Main.cpp:336:
– BaseGUI::setScreenshotDirectoryPath(Utils::getSofaPathPrefix() + “/screenshots”, true);
+ BaseGUI::setScreenshotDirectoryPath(“./screenshots”, true);
This would also make the screenshots more discoverable for novice users, as the folder would show up next to the scene file.
Hi Raphael,
You’re right with the video problem: all the screenshots get in the same folder and it quickly becomes messy.
However, I think that having a screenshot folders next to the scene files would make things more complicated (screenshot folders everywhere). Moreover, nothing would change for the video mess problem…
I guess it would be cool to have a structure like this (located in build root directory):
screenshots/
scene_name/
scene_name_00000001.png
scene_name_00000004.png
video_00000001/
scene_name_00000002.png
scene_name_00000003.png
What do you think ?
Anyway, if you implement cool features in Sofa and you want to propose them to the community, do not hesitate to open Pull Requests in our GitHub 😉
Cheers,
Guillaume.
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.