As of version 3.0, OpenSim comes with a built in scripting shell that allows user access to the OpenSim API for loading, editing, and building models, running tools, plotting results, and more. The syntax for the scripting shell in the GUI is Python.
Table of Contents |
---|
What's Available?
|
Getting Started
|
|
...
Script Name | Description | |
---|---|---|
runTutorialOne.py | This example script performs the steps performed in Tutorial 1 - Intro to Musculoskeletal Modeling. | |
runTutorialTwo.py | This example script performs the steps performed in Tutorial 2 - Simulation and Analysis of a Tendon Transfer Surgery. | |
runTutorialThree.py | This example script performs the steps performed in Tutorial 3 - Scaling, Inverse Kinematics, and Inverse DynamicstestVisuals.py | |
Demonstrates control of visuals. Loads a model (Both Legs with Muscles), changes the color of the pelvis, makes the right femur transparent, and aligns the model view with the x axis. | testShowModelSummary.py | Displays information about a the current model in a standalone dialog. |
plotMuscleFiberLengthAgainstFile.py | Shows how to create and display a plot window. The script loads the BothLegs OpenSim model and adds curves of fiber length for the model. Then, it loads and plots data from a storage file, which contains fiber lengths for the model Subject01_simbody that is included with the OpenSim distribution. | |
plotMuscleMomentArmAgainstMotion.py | Shows how to plot muscle moment arms as a function of a motion. | |
makeUlnaHeavy.py | Shows how to create a modified version of a model that is loaded in the GUI. The Arm26 model must be loaded and current in the GUI to run this script. The script increases the mass of the ulna. The modified model is then loaded in the GUI. | |
alterTendonSlackLength.py | Shows how to change the attributes of the muscles for the current model (tendonSlackLength in this example). | |
runScaling.py | Runs the scale tool for the Gait2354 model, and loads the generic and scaled models in the GUI. | |
runMultipleIKTrials.py | Runs multiple inverse kinematics trials. To see the results, load the model and ik IK output in the GUI. | |
strengthenModel.py | Increases the maxIsometricForce max. isometric force of all the muscles in the currently loaded model. A pop-up dialog displays a confirmation with the name of the new model. | |
editProperties.py | Script to demonstrate how to edit model component properties. | |
modelBuildingUtilities.py | Helper functions for adding specific types of components (Bodies, Frames, Joints, Geometry) to a model. | |
createControlsFromStorage.py | Helper function to create a controls.xml file from a .sto file. |
...