awesome that worked but I received an error in my next line which is:
rightShank.getDisplayer().setScaleFactors([PylonLength/10, PylonLength, PylonLength/10]);
same error
No appropriate method, property, or field getDisplayer for class org.opensim.modeling.Body.
Search found 2 matches
- Tue Oct 23, 2018 6:26 pm
- Forum: 2018 Fall OpenSim Virtual Workshop
- Topic: Trouble with adding .vtp file in matlab to model
- Replies: 4
- Views: 290
- Tue Oct 23, 2018 4:35 pm
- Forum: 2018 Fall OpenSim Virtual Workshop
- Topic: Trouble with adding .vtp file in matlab to model
- Replies: 4
- Views: 290
Trouble with adding .vtp file in matlab to model
I am trying to add a .vtp to my model and it keeps giving me the error below No appropriate method, property, or field attachMeshGeometry for class org.opensim.modeling.Body. Error in GenerateLegworksModel (line 23) rightShank.attachMeshGeometry('sphere.vtp'); I have tried both addDisplayGeometry(.....