Search found 2 matches
- Thu Mar 28, 2024 3:35 am
- Forum: OpenSim
- Topic: How to generate Storage in Python
- Replies: 3
- Views: 824
Re: How to generate Storage in Python
Thanks, that helped a lot! I was able to generate a Storage and write to .sto file. Here is an example Python script, in case that's helpful for anyone. import opensim storage = opensim.Storage() storage.setName("Test storage") storage.setInDegrees(True) columnLabels = opensim.ArrayStr() columnLabel...
- Wed Mar 27, 2024 12:27 am
- Forum: OpenSim
- Topic: How to generate Storage in Python
- Replies: 3
- Views: 824
How to generate Storage in Python
Hello, I would like to use a Python script to generate a .mot file, to use in Inverse Kinematics. I am using OpenSim 4.5. I wanted to use the Storage class of the API, but I cannot make it work. Here is my script: import opensim storage = opensim.Storage(100) storage.setColumnLabels(["a", "b", "c"])...