There may be an error in the document "Common Scripting Commands"

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Simon Jeng
Posts: 87
Joined: Fri Sep 07, 2018 8:26 pm

There may be an error in the document "Common Scripting Commands"

Post by Simon Jeng » Sun Feb 07, 2021 11:30 pm

Hi OpenSim team,

There may be a mistake in the page
https://simtk-confluence.stanford.edu:8 ... g+Commands

At the middle of the page, there is an instruction about how to access and edit the joints of an OpenSim model. The code is:

Code: Select all

rightHip = jointSet().("hip_r")
I think a "get" is missing. The correct code should be

Code: Select all

rightHip = jointSet().get("hip_r")
Also, the next code should be

Code: Select all

rightHip = myModel.getJointSet().get("hip_r")
Best,
Simon

Tags:

User avatar
Ayman Habib
Posts: 2248
Joined: Fri Apr 01, 2005 12:24 pm

Re: There may be an error in the document "Common Scripting Commands"

Post by Ayman Habib » Tue Feb 09, 2021 9:06 am

Thanks for reporting, Simon.

We'll fix the code snippet on confluence. In the future you can also update the documentation website directly if you see some other documentation issues or stale code.

Best regards,
-Ayman

POST REPLY