opensim-creator
opensim-creator copied to clipboard
Add "Save CSV and Open" to the "vs. coordinate" muscle plotter
Estimate: 0.25-0.5d
The muscle plot widget has an export CSV
but, to match other plots (e.g. those in the simulation screen) it should perhaps also have an export CSV and save
option. Here would be the affected area:
The change would be to add an extra ImGui::Menu
in ModelMusclePlotPanel
around here:
- https://github.com/ComputationalBiomechanicsLab/opensim-creator/blob/main/src/OpenSimBindings/Widgets/ModelMusclePlotPanel.cpp#L1934
And the code would be the same as export CSV
, but it would also need an extra function call to open the relevant application. This is done in SimulatorTab
currently like this:
if (ImGui::MenuItem("as CSV (and open)"))
{
auto p = osc::TryPromptAndSaveAllUserDesiredOutputsAsCSV(*this);
if (!p.empty())
{
osc::OpenPathInOSDefaultApplication(p);
}
}
Possible duplicate of #390
Dropping from 0.4.1 - a few new bugfix tickets (e.g. #645, #644) pushed time out of the schedule and I need to drop ~3 days of development time from the milestone.