Hi Ahmidou, It look like a bug.
Snapping targets should not be displayed for tools that don't have snapping enabled. The picking issue sounds like a secondary bug that is probably triggered by the snap target display. Have you tried disabling the snap properties inside your tool as a workaround? -- Brent From: [email protected] [mailto:[email protected]] On Behalf Of Ahmidou Lyazidi Sent: 19 October 2012 08:56 To: [email protected] Subject: Re: [custom tool sdk] Disabling snapping when ctrl is pressed Hi Minrui, Thanks for your reply, It is disabeld in the context which is fine, but if the options are set to: Application.SetValue("preferences.SnapProperties.Enable0D", True, "") Application.SetValue("preferences.SnapProperties.Centers", True, "") Application.SetValue("preferences.SnapProperties.Points", True, "") object pivot appears in the viewport while pressing ctrl and there is wrong hit number when rectangle picking knots Cheers A. 2012/10/19 Min Rui Tan <[email protected]<mailto:[email protected]>> Snapping should be disabled by default in the toolcontext. You see the snap toggled in the UI but using for example GetWorldPosition won't return the snapped positions. Regards, Minrui -----Original Message----- From: [email protected]<mailto:[email protected]> [mailto:[email protected]<mailto:[email protected]>] On Behalf Of Stefan Kubicek Sent: Friday, October 19, 2012 3:19 PM To: [email protected]<mailto:[email protected]> Subject: Re: [custom tool sdk] Disabling snapping when ctrl is pressed -> http://usa.autodesk.com/adsk/servlet/item?id=12331406&siteID=123112&S -> elProduct=Softimage > More details on this, rectangle pick a knot while ctrl is down return > extra imagniary indice (like 3442 when there is only 4 knots) if: > -the knot is the 2nd one (indice =1) > -more than one knot is picked > > Weird... > > 2012/10/19 Ahmidou Lyazidi > <[email protected]<mailto:[email protected]>> > >> Hi >> I'm working on a tool that need to mimic rectangle selection on >> closed bezier curve's knots ,so when ctrl is down it toggle the selection. >> But pressing ctrl inside a custom tool also toggle snapping. Even >> with "in_ctxt.EnableSnapping(0);" I still have the snapping center >> that appears, and worst when picking the 2nd knot it return 2 hits , >> one is right and the other an undefined value... >> >> This happen only when ctrl is down and registering it as a shortcut >> key didn't helped Afaik snapping should only work with the transform >> tool or when it is activated in a custom tool, right? >> >> Is there a way to completely disable the snapping tool while using a >> custom one? >> >> Brent, anyone? >> >> Cheers!! >> >> -- >> Ahmidou Lyazidi >> Director | TD | CG artist >> http://vimeo.com/ahmidou/videos >> >> > > -- ------------------------------------------- Stefan Kubicek Co-founder ------------------------------------------- keyvis digital imagery Wehrgasse 9 - GrĂ¼ner Hof 1050 Vienna Austria Phone: +43/699/12614231<tel:%2B43%2F699%2F12614231> --- www.keyvis.at<http://www.keyvis.at> [email protected]<mailto:[email protected]> --- -- This email and its attachments are --confidential and for the recipient only-- -- Ahmidou Lyazidi Director | TD | CG artist http://vimeo.com/ahmidou/videos
<<attachment: winmail.dat>>

