Create simple model from scratch

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
User avatar
Raul Munoz
Posts: 7
Joined: Wed Nov 11, 2020 7:31 am

Re: Create simple model from scratch (solved!)

Post by Raul Munoz » Sun Dec 13, 2020 1:37 pm

Thank you very much, Thomas. The example of GitHub works great. That is exactly what I was looking for!
Sorry, last question: would you please tell me where to find similar examples?
Many thanks.

Tags:

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

Re: Create simple model from scratch

Post by Ayman Habib » Mon Dec 14, 2020 3:40 pm

Hello Raul,

Thanks for the feedback.

Generally if you're trying to use API commands in the scripting shell you need to import the 'org.opensim.modeling' package, as seen in most GUI scripts. Some other scripts (under GUI) use the GUI functionality directly and as such don't need this import line as not part of the API. Generally I recommend following the help links that Tom pointed to (for using the various environments: Python/Java/GUI=Jython) and letting us know where the documentation falls short, or scripts don't work as expected.

Best regards,
-Ayman

User avatar
Raul Munoz
Posts: 7
Joined: Wed Nov 11, 2020 7:31 am

Re: Create simple model from scratch

Post by Raul Munoz » Tue Dec 15, 2020 4:36 pm

Hello Ayman,

Thanks a lot for your help and your suggestions.

I will keep learning and let you know if I encounter any script that does not work as expected.

Best regards,
Raul

POST REPLY