Search found 14 matches

by Riza Bayoglu
Wed Jun 12, 2024 9:31 am
Forum: OpenSim
Topic: Visualizer properties
Replies: 0
Views: 154

Visualizer properties

Hi, I like to visualize my model using the Visualizer class, change background and view direction, and save the resulting image in an automated fashion. So far, I can view the model using the code pieces below, but could not change background or view direction. Is this possible in OpenSim? I am usin...
by Riza Bayoglu
Wed Apr 17, 2024 1:24 pm
Forum: OpenSim
Topic: How to generate Storage in Python
Replies: 3
Views: 478

Re: How to generate Storage in Python

Thanks for sharing. This is very helpful!
by Riza Bayoglu
Mon Apr 08, 2024 4:49 pm
Forum: Spine and rib cage model in OpenSim
Topic: subject-specific implementation of pelvic alignment
Replies: 18
Views: 2926

Re: subject-specific implementation of pelvic alignment

Hi Jacob, Thanks so much for sharing this code, it worked like a charm! I can now set patient-specific pelvic parameters automatically through Python scripting. I modified some coding bits because some were depreciated in the OpenSim version I am using, and most lines worked just fine in Python. Whe...
by Riza Bayoglu
Fri Apr 05, 2024 3:30 pm
Forum: Spine and rib cage model in OpenSim
Topic: subject-specific implementation of pelvic alignment
Replies: 18
Views: 2926

Re: subject-specific implementation of pelvic alignment

Hi Jacob, Thanks for the comment. I tried different things, but I am having difficulty figuring this out and understanding the solution you suggested. Since sacrum rotates relative to the cs. (superior one in the attached picture), sacrum position seems off when we set PI values around 60 deg. We ca...
by Riza Bayoglu
Mon Apr 01, 2024 8:29 am
Forum: OpenSim
Topic: updating default coordinate values
Replies: 4
Views: 704

Re: updating default coordinate values

I still need help with this. Does anyone have suggestions? Thank you.
by Riza Bayoglu
Thu Mar 28, 2024 1:48 pm
Forum: Spine and rib cage model in OpenSim
Topic: subject-specific implementation of pelvic alignment
Replies: 18
Views: 2926

Re: subject-specific implementation of pelvic alignment

I might be wrong, but I haven't tried it yet. Were you able to download the attached models? What did you exactly change and observed in the results that seemed things are working? I am interested to learn how to set the PI angle to an exact measured value. I can change the PI angle, but not to the ...
by Riza Bayoglu
Thu Mar 28, 2024 8:27 am
Forum: OpenSim
Topic: updating default coordinate values
Replies: 4
Views: 704

Re: updating default coordinate values

Hi Thomas, Thanks for the help. My original scripts do not include the code piece, state = model.initSystem() after the second for loop. I accidentally copied that line when I was copying the clean version of my codes here, my bad. For the sake of clarity, my current codes are below. I am using Pyth...
by Riza Bayoglu
Wed Mar 27, 2024 4:05 pm
Forum: OpenSim
Topic: updating default coordinate values
Replies: 4
Views: 704

updating default coordinate values

Hi, I like to change the coordinate values in my model using Python scripting. I am analyzing only one state. Reading through the API documents and the forum questions, I used setValue() property of the coordinates and assemble() afterwards. However, my code below does not seem to update the default...
by Riza Bayoglu
Wed Mar 27, 2024 2:09 pm
Forum: Spine and rib cage model in OpenSim
Topic: subject-specific implementation of pelvic alignment
Replies: 18
Views: 2926

Re: subject-specific implementation of pelvic alignment

Hi Jacob, Sorry for getting back here late, I had back to back meetings today. Thanks so much for the help. I started to feel like this might have something to do with the position of the center of the pelvis_sacrum joint. When we change the default value of the pelvis_tilt coordinate, both pelvis a...
by Riza Bayoglu
Tue Mar 26, 2024 10:01 am
Forum: Spine and rib cage model in OpenSim
Topic: subject-specific implementation of pelvic alignment
Replies: 18
Views: 2926

Re: subject-specific implementation of pelvic alignment

Yes, I see changes in PT, SS, and PI when I modify the z orientation of the sacrum_offset frame of the pelvis_sacrum joint . I am using the MaleFullBodyModel_v2.0_OS4.osim model. Any yes, these definitions are correct. I am only working on sagittal alignment. I am also attaching an image showing wha...