Accessing CoordinateCouplerConstraint through Matlab
- Aaditya Chandramouli
- Posts: 1
- Joined: Wed Jul 24, 2019 6:42 pm
Accessing CoordinateCouplerConstraint through Matlab
Is it possible to read and change/set the CoordinateCouplerConstraints of a model using Matlab?
Tags:
- Carmichael Ong
- Posts: 401
- Joined: Fri Feb 24, 2012 11:50 am
Re: Accessing CoordinateCouplerConstraint through Matlab
Yes you should be able to edit any Component with the Matlab API.
You can access any component of a model with "updComponent()" (see https://simtk.org/api_docs/opensim/api_ ... e2999db511 for more details).
You will likely have to perform a "safeDownCast()" to get the correct methods to show up. An example in our documentation: https://simtk-confluence.stanford.edu/d ... g+Commands
After downcasting, you should have access to the class's methods: https://simtk.org/api_docs/opensim/api_ ... raint.html
You can access any component of a model with "updComponent()" (see https://simtk.org/api_docs/opensim/api_ ... e2999db511 for more details).
You will likely have to perform a "safeDownCast()" to get the correct methods to show up. An example in our documentation: https://simtk-confluence.stanford.edu/d ... g+Commands
After downcasting, you should have access to the class's methods: https://simtk.org/api_docs/opensim/api_ ... raint.html