Hi Vincent, The first place to start is by checking the return values to make sure the calls succeed before attempting to use the values.
Just because picking got an intersection doesn't mean the point locator query will succeed because they are using different techniques for testing intersection. Also picking generally uses a small region around the cursor. (so you could still get a picking hit when your cursor is a few pixels outside the surface) I found this code snippet from Piotrek on this thread that shows how to check the point locator setup/results for errors. http://www.si-community.com/community/viewtopic.php?f=16&t=2595 I think that with proper error checking your issue will probably go away. -- Brent -----Original Message----- From: softimage-boun...@listproc.autodesk.com [mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Vincent Ullmann Sent: 14 June 2013 20:35 To: softimage@listproc.autodesk.com Subject: CustomTool Pick Hey List, currently i try to develop a little CustomTool. Most of it works fine, except one annoying Issue. I use the Pick-Command to get a current Location under my Cursor As demonstrated in the attached picture, when the cursor is near the Edge between Object and ViewportBackground there seems to be an Error. Does anyone know how to avoid this?
<<attachment: winmail.dat>>