How to get the coordinates from a point on mouseclick in the new viewer

I want to get the coordinates from a point in the viewer (newest version) after clicking, but it seems it has been changed from the previous version of the viewer.

SDV.addListener(SDV.EVENTTYPE.INTERACTION.SELECT_ON, (e) => {
addPoint(e);
});
.
var addPoint = function(event) {
console.log(“add point”);
pickPoint = event.selectPos;
.

I can’t get a selectpos from the event, while in previous versions that was the way.

https://support.shapediver.com/hc/en-us/articles/360030890392-Tutorial-Pick-and-Drag-Points-on-an-Object

Any help?

Hey @Robin_van_Wijk,
sorry for the late replay, we had quite a few holidays in the last weeks.

I just deployed a new viewer version 2.0.9 that now also exposes the intersectionPoint in this event.
Please let me know if that is all you need, if not, we can always expose more there!

Cheers, Michael