- This topic has 4 replies, 3 voices, and was last updated 3 years, 8 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Using SOFA › [SOLVED] Running SOFA from the terminal
Tagged: commandline, doe, Linux_ubuntu, SOFA_1906
Hello,
Is there a way to run SOFA animation from the terminal itself instead of having to click on the Animate button in the GUI? I want to run some experiments on my model and collect the data from the simulations in a text file. It would be nice if I can make this call to SOFA animation through the terminal in my workflow.
Regards,
Simit
Hi Simit,
you can pass additional arguments to the runSofa binary.
runSofa --help
gives you a detailed list of possible options.
Directly running a simulation can be done with
./runSofa -a 1 /path/to/scene/file
Cheers,
Paul
Hi Paul,
Thanks a lot for your response. The runSofa --help
cleared up a lot of my queries. Feels like a rookie mistake not looking at the help.
However, the -a 1
flag didn’t work for me as long as I was using the GUI. When I used the -g batch
flag, I could see that the animation runs by itself. I am using the pre-compiled binary of SOFA. Do you think there might be some limitations of the commandline args in the binary version?
Cheers,
Simit
hey @psimit
Not different would be to expect between the binary and the compiled-from-sources version.
Indeed the -a 1
comment is overwritten by the boolean “animate” Data of the root node when you are using the GUI, I guess.
Best,
Hugo
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.