Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
-
Cai Birch
- Posts: 31
- Joined: Tue Jan 02, 2018 7:40 am
Post
by Cai Birch » Thu Dec 13, 2018 7:56 am
I'm trying to run the runScaling.py code in my script but both 'getResourcesDir()' and 'modeling.' are undefined despite importing os.path and opensim. Is there something else I'm missing or does anyone know where these modules are located so that I can import them?
Code: Select all
# Written by James Dunne, Stanford University
import os.path
# Define paths
modelFolder = os.path.join(getResourcesDir(),"Models", "Gait2354_Simbody");
scaleSetupPath = os.path.join(modelFolder, "subject01_Setup_Scale.xml");
## Run the Scale Tool with all the current settings from the setup file
scaleTool = modeling.ScaleTool(scaleSetupPath)
scaleTool.run();
Tags: