control + shift is another option.. Note the modifiers are designed to be used in combinatiton. <br><br><div class="gmail_quote">2010/5/19 Rodrigo Valiña Gutiérrez <span dir="ltr"><<a href="mailto:rodrigo.valina@usc.es">rodrigo.valina@usc.es</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
It does not work.<br>
<br>
With Ctrl+Alt, GetAltKey() returns 0. Also it behaves like Ctrl,<br>
rotating around an axis.<br>
<br>
I was looking for a key that does not modify the regular behavior<br>
(rotation) of the scene...<br>
<font color="#888888"><br>
--<br>
Rodrigo<br>
<br>
2010/5/19 Jérôme <<a href="mailto:jerome.velut@gmail.com">jerome.velut@gmail.com</a>>:<br>
</font><div><div></div><div class="h5">> Hi,<br>
> The Alt key is expected to be triggered along with another key.<br>
> You can try a combination of ctrl+alt.<br>
><br>
> Jerome<br>
><br>
> 2010/5/18 Rodrigo Valiña Gutiérrez <<a href="mailto:rodrigo.valina@usc.es">rodrigo.valina@usc.es</a>>:<br>
>> Hi,<br>
>><br>
>> I am using VTK 5.4.2 embedded in Python + wxWidgets<br>
>><br>
>> I am trying to capture a key that does not modify the left click<br>
>> action by default.<br>
>><br>
>> I use vtkRenderWindowInteractor and its methods:<br>
>><br>
>> a = self.iren.GetAltKey()<br>
>> c = self.iren.GetControlKey()<br>
>> s = self.iren.GetShiftKey()<br>
>> kc = self.iren.GetKeyCode()<br>
>> ks = self.iren.GetKeySym()<br>
>><br>
>> CTRL rotates<br>
>> SHIFT displaces<br>
>> ALT is never reported, I think that because, at least in Windows, it<br>
>> triggers a menu event (selects the first menu in the menubar).<br>
>> the KeyCode is always '\x00'<br>
>> the KeySym is always None<br>
>><br>
>> looking at the code of<br>
>> vtkRenderWindowInteractor::SetEventInformation(), I see that AltKey is<br>
>> never modified.<br>
>><br>
>> So, is there any other key that I can use to do in my code a custom<br>
>> action when pressing left mouse button?<br>
>> _______________________________________________<br>
>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>><br>
>> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>><br>
>> Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
>><br>
>> Follow this link to subscribe/unsubscribe:<br>
>> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
>><br>
><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br><br clear="all"><br>