Marker or point location in API
Posted: Thu Jan 16, 2014 1:51 am
Hi,
I would like to get the location of a point on a body through the API. The location of the point of interest should scale along with the body it is attached to.
I haven't found a way to define a point on a body so the only option I could think of is to define a marker on the body and get its position. And there is also a problem: How do I get the location of a marker on a body in the API?
The marker has a property that defines its location but I cannot seem to access it. I get till the marker itself and then I am lost. There is a getProperty() option but I can't figure out how to use this.
Best regards,
Erik
I would like to get the location of a point on a body through the API. The location of the point of interest should scale along with the body it is attached to.
I haven't found a way to define a point on a body so the only option I could think of is to define a marker on the body and get its position. And there is also a problem: How do I get the location of a marker on a body in the API?
The marker has a property that defines its location but I cannot seem to access it. I get till the marker itself and then I am lost. There is a getProperty() option but I can't figure out how to use this.
Code: Select all
osimModel.getMarkerSet().get("markerName")
Erik