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.
Create simple model from scratch
- Raul Munoz
- Posts: 7
- Joined: Wed Nov 11, 2020 7:31 am
- Ayman Habib
- Posts: 2252
- Joined: Fri Apr 01, 2005 12:24 pm
Re: Create simple model from scratch
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
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
- Raul Munoz
- Posts: 7
- Joined: Wed Nov 11, 2020 7:31 am
Re: Create simple model from scratch
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
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