Page 1 of 1

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

Posted: Sun Feb 07, 2021 11:30 pm
by zhengsize
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

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

Posted: Tue Feb 09, 2021 9:06 am
by aymanh
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