Issue with Cursor RAS Position Retrieval in Slicer 5.7

Hi all,

I’m trying to retrieve the cursor’s RAS position using the following code:

ras = [0, 0, 0]
crosshairNode.GetCursorPositionRAS(ras)

In Slicer 5.6, when the cursor was positioned over the modelNode, it would return the coordinates on that modelNode. However, in 5.7, even when the cursor is over the modelNode, it instead returns coordinates from the camera plane.

Could you please let me know if there were any updates or changes in this new version that could explain this behavior?

Thank you!

It’s possible that this pull request could fix the issue: BUG: Fix issue preventing interacting with Markups curves by Sunderlandkyl · Pull Request #8021 · Slicer/Slicer · GitHub

Thank you for the response @Sunderlandkyl.
Is there a way to resolve this issue in Python before the pull request is merged?

PR is now merged. The fix should be available in tomorrows preview release.