get_attached_geometry Crashes Python Kernel
Posted: Tue Jul 06, 2021 8:43 am
Hello,
I am currently trying to print the scale factors of a scaled model through the Python API. I have attempted to run the following script:
The python kernel dies every time I call the get_attached_geometry() method. I have not had any issues with calling other methods from the body object and can manually open the scaled model to view the scale factors, so I know there is no issue with the model file.
I am currently trying to print the scale factors of a scaled model through the Python API. I have attempted to run the following script:
Code: Select all
model = osim.Model(scaled_model_path)
body = model.getBodySet().get(0)
geometry = body.get_attached_geometry(0)
factors = geometry.get_scale_factors()