opensim-org / opensim-core

SimTK OpenSim C++ libraries and command-line applications, and Java/Python wrapping.
https://opensim.stanford.edu
Apache License 2.0
758 stars 308 forks source link

Add .trc file to scaleTool in python #3757

Closed hmejbri closed 3 months ago

hmejbri commented 3 months ago

I need to add perform scaling but I cant seem to find how and the documentation is not clear. This is what I came up with :

`

Load model

model = opensim.Model(model_file)

# Load scaling setup
scale_tool = opensim.ScaleTool(scaling_file)

# Add .trc file 

# Run scaling
scale_tool.run()

# Save scaled model
scaled_model_file = "scaled_model.osim"
model.printToXML(scaled_model_file)

`

nickbianco commented 3 months ago

@hmejbri, unless there is a bug to report, please post these types of questions to the OpenSim forum.