Are you aiming to build a node editor? since maya2012 SAP it has a node
editor with the tab functionality you mention.
On 03/15/2013 10:03 PM, Jesse Capper wrote:
As a side project I'm seeing if I can create a node-creation popup for the
hypershade similar to what Nuke has in it's node graph. The idea is that
hitting tab in a workArea/hyperShadeGraphPanel will popup something like a
combobox with completion and you can type in a node to create.
If I attach an eventFilter on the paneLayout of the hypershade work area, the
only Key related event that gets thrown when I hit tab is ShortcutOverride. If
I accept the event and/or return True, the shortcut still seems to propogate,
and the focus is changed from that widget that the eventFilter was attached to
(which is the normal behavior). At the time of the eventFilter's execution, the
eventFilter's object is still the widget with focus, so the focus change is
happening afterwards.
Anyone have any ideas or other methods for implementing something like this or
intercepting a tab key on a maya widget?
--
////////////////////////////////////
Ricardo Viana
VFX Generalist
--
You received this message because you are subscribed to the Google Groups "Python
Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.