Search found 104 matches

by Bryce Killen
Mon May 09, 2022 12:39 am
Forum: OpenSim
Topic: Add Physical Offset frame to Joint API
Replies: 2
Views: 906

Re: Add Physical Offset frame to Joint API

Hi Pavlos,

Thanks for the tips and the code

I'll give it a try !

Hope all is well mate

Cheers
by Bryce Killen
Thu May 05, 2022 7:36 am
Forum: OpenSim
Topic: Add Physical Offset frame to Joint API
Replies: 2
Views: 906

Add Physical Offset frame to Joint API

HI all, I am trying to programatically add a physiscal offset frame to an existing model which currently does not have any frame. My primary problem is that I cannot edit/update the " socket_parent " is the Physical Offset Frame - and the " socket_parent_frame " of the joint which I suspect is becua...
by Bryce Killen
Thu Mar 31, 2022 12:50 pm
Forum: OpenSim
Topic: Edit Wrapping Surface Proprties API
Replies: 7
Views: 1337

Re: Edit Wrapping Surface Proprties API

[SOLVED] ** to some degree

I managed to get around this by calculating a scale factor and scaling the wrapping surface object (after safeDownCast) , then resetting the translations to what they were previously.
by Bryce Killen
Thu Mar 31, 2022 12:37 am
Forum: OpenSim
Topic: Edit Wrapping Surface Proprties API
Replies: 7
Views: 1337

Re: Edit Wrapping Surface Proprties API

HI Najoua,

Thank you for the reply. Are you able to share a small snippet of the code you used to edit, for example, the wraping surface radius , in the case of a sphere. I am assuming you were still reliant on the PropertyHelper function ?

Thanks in advance for any help you can provide.

Best
Bryce
by Bryce Killen
Mon Mar 28, 2022 8:37 am
Forum: OpenSim
Topic: Edit Wrapping Surface Proprties API
Replies: 7
Views: 1337

Re: Edit Wrapping Surface Proprties API

Hi Ayman, I just did a quick check, when I open the OpenSim 4.1 GUI , and type the code you suggested, it does indeed return the different methods of PropertyHelper I was looking for. While this is useful, I want to be able to access these functions OUTSIDE of the GUI , i.e., through the Python API....
by Bryce Killen
Mon Mar 28, 2022 8:15 am
Forum: OpenSim
Topic: Edit Wrapping Surface Proprties API
Replies: 7
Views: 1337

Re: Edit Wrapping Surface Proprties API

Hi Ayman, Thank you for your reply. I am using just OpenSim 4.0 so not 4.1 or higher. I'm happy to hear that it has been added back to the API for these versions. I will try and upgrade my current version to one of these more recent versions and translate the rest of my code. Thanks for the help. Br...
by Bryce Killen
Mon Mar 28, 2022 5:35 am
Forum: OpenSim
Topic: Binary .vtp files to ascii for geometry files
Replies: 3
Views: 587

Re: Binary .vtp files to ascii for geometry files

Example in case you have not found one import vtk from tkinter.filedialog import askopenfilename binSTL = askopenfilename(title = ' Select the binary STL to convert ... ') binSTL = str(binSTL) stlR = vtk.vtkSTLReader() stlR.SetFileName(binSTL) stlR.Update() polyData = stlR.GetOutput() ascSTL = binST...
by Bryce Killen
Mon Mar 28, 2022 5:28 am
Forum: OpenSim
Topic: Edit Wrapping Surface Proprties API
Replies: 7
Views: 1337

Edit Wrapping Surface Proprties API

Hi All, I am trying to find replacements for functions that existed in the OpenSim 3.3 API but are now no longer in the OpenSim API guide ( to my knowledge). I am specificlaly trying to automatically update wrapping surface (ellipsoidsand spheres) properties such as transaltion, radius etc. In OpenS...
by Bryce Killen
Thu Jul 15, 2021 3:20 am
Forum: Musculoskeletal Atlas Project
Topic: 2 errors when Launch Mapclient: 1. warning: Mayavi not imported, 2error on "no module named vtkIOXMLParserPython"
Replies: 8
Views: 1341

Re: 2 errors when Launch Mapclient: 1. warning: Mayavi not imported, 2error on "no module named vtkIOXMLParserPython"

It seems this is an installation problem.

Did you following the most up to date installation instructions which are on this SimTK page ?

Bryce
by Bryce Killen
Mon Aug 10, 2020 12:58 am
Forum: Musculoskeletal Atlas Project
Topic: Ligament insertions/origins
Replies: 3
Views: 710

Re: Ligament insertions/origins

Hi Sami, The implementation was based on an old implementation of the COMAK workflow which is now OpenSim JAM https://github.com/clnsmith/opensim-jam I have not updated the workflow/code to account for these changes, but this can be done. If you would like to take this further, you should be able to...