You are viewing the documentation for OpenSim 2.4. Are you looking for the latest OpenSim 4.0 Documentation?

Opening and Restoring Function Editor

The topics covered in this section include:

Opening the Editor

The Function Editor window is opened by locating the function you want to modify and choosing the edit option. This will open (or pop, if it is already open) the Function Editor window and load the function into it. Once the window is open, you cannot select another function to edit from within the Function Editor window. You must locate the other function in the Navigator or other model editing tool and choose the edit option for that function. Doing so will close the function that is currently in the Function Editor (saving all changes), and will load the new function. 

Opening the Editor for a Joint Constraint Function

To edit a joint constraint function associated with a degree of freedom (DOF) follow the steps below. In this example, the translation1 DOF (the X translation) in the femoral-tibial joint is a function of the coordinate r_knee_angle. Right-clicking on the coordinate name brings up a drop-down menu.  Choosing Edit… allows you to load the function into the Function Editor.

  1. Locate the DOF in the Navigator window

  2. Click on the plus (plus) sign next to the name of the current model to display the model components.

  3. Click on the plus (plus) sign next to Joints.

  4. Click on the plus (plus) sign next to the name of the appropriate joint.

  5. Click on the plus (plus) sign next to Dofs.

  6. Right click on the name of the coordinate and choose Edit... from the drop down menu.

  7. The Function Editor window will be opened where you can load the function you want to view and modify.

Opening the Editor for Muscle Property Functions

To edit the force-length curve or other property functions of a muscle, first load the muscle into the Muscle Editor. In the Muscle Editor, click on the Functions tab to display the list of muscle properties that are functions. Click on the Edit button to load the function into the Function Editor.

Opening the Editor for Moving Muscle Points

To edit the functions that define the movement of moving muscle points, first load the muscle into the Muscle Editor. Then, click on the Attachments tab to display the list of the muscle's attachment points. For moving muscle points, the XYZ columns will contain Edit buttons. Click on one to load that component's function into the Function Editor.

Backing Up and Restoring

When you modify a function in the Function Editor, the modification occurs immediately to the function stored in the model. You do not need to apply the change to make it happen, nor can you cancel the change before it takes effect. To allow you to undo changes made to a function, there are two buttons at the bottom of the Function Editor window that backup and restore it. When you first load a function into the Function Editor, a backup copy of it is made, so you can restore it without having to back it up first. Pressing the Backup button makes a backup copy of the function, overwriting the previous copy. Pressing the Restore button restores the function from its backup copy.

OpenSim is supported by the Mobilize Center , an NIH Biomedical Technology Resource Center (grant P41 EB027060); the Restore Center , an NIH-funded Medical Rehabilitation Research Resource Network Center (grant P2C HD101913); and the Wu Tsai Human Performance Alliance through the Joe and Clara Tsai Foundation. See the People page for a list of the many people who have contributed to the OpenSim project over the years. ©2010-2024 OpenSim. All rights reserved.