Page 1 of 1

Accessing CoordinateCouplerConstraint through Matlab

Posted: Sun Mar 07, 2021 11:18 pm
by aadit90
Is it possible to read and change/set the CoordinateCouplerConstraints of a model using Matlab?

Re: Accessing CoordinateCouplerConstraint through Matlab

Posted: Mon Mar 08, 2021 3:47 pm
by ongcf
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