Edit spatialtransform and CoordinateCouplerConstraint in API
Posted: Tue May 01, 2012 12:00 am
Hi,
I am just having some issues editing an existing osim file using the API. I want to be able to change the coordinate coupler constraint properties and the spatial transform propoerties of different joints programatically. The reason is to make it easier to make bulk changes to my osim file.
I changed the range of some joint coordinates using the following;
CoordinateSet& CS = osimModel.updCoordinateSet();
CS[CS.getIndex("flex_extension",0)].setRange(FE_range);
Is there a similar approach to change the functions in the spatialtransform and coordinatecouplerconstraint classes?
Thanks,
Tom
I am just having some issues editing an existing osim file using the API. I want to be able to change the coordinate coupler constraint properties and the spatial transform propoerties of different joints programatically. The reason is to make it easier to make bulk changes to my osim file.
I changed the range of some joint coordinates using the following;
CoordinateSet& CS = osimModel.updCoordinateSet();
CS[CS.getIndex("flex_extension",0)].setRange(FE_range);
Is there a similar approach to change the functions in the spatialtransform and coordinatecouplerconstraint classes?
Thanks,
Tom