getModifiers? http://download.autodesk.com/global/docs/maya2013/en_us/CommandsPython/getmodifiers.html I don't know if it is exactly what you are asking, but you can get what keys are pressed with this command and perform commands accordingly, for instance append to an existing selection as you intend.
Cheers >From docs: import maya.cmds as cmds def PrintModifiers(*args): mods = cmds.getModifiers() print 'Modifiers are:' if (mods & 1) > 0: print ' Shift' if (mods & 4) > 0: print ' Ctrl' if (mods & 8) > 0: print ' Alt' if (mods & 16): print ' Command/Windows' cmds.window() cmds.columnLayout() cmds.button( label='Press Me', command=PrintModifiers ) cmds.showWindow() 2012/12/3 ammu0608 <ammu0...@gmail.com> > You mean you want to select multiple rig controls by pressing a single > push button. > > Thanks and Reagrds, > Sudeepth Patinjarayi. > On Dec 3, 2012 11:28 PM, "Rishis3D" <rishis...@gmail.com> wrote: > >> Multiple selection of Character Rig Controls using shift key .. just like >> normal Maya multiple selecting of objects.. >> >> -- >> view archives: http://groups.google.com/group/python_inside_maya >> change your subscription settings: >> http://groups.google.com/group/python_inside_maya/subscribe >> > -- > view archives: http://groups.google.com/group/python_inside_maya > change your subscription settings: > http://groups.google.com/group/python_inside_maya/subscribe > -- *Carlos Rico Adega *Maya Generalist* *------------------------------------- <http://www.vimeo.com/16765581> LinkedIn<http://www.linkedin.com/pub/carlos-rico/6/58/325> carlos.rico...@gmail.com -- view archives: http://groups.google.com/group/python_inside_maya change your subscription settings: http://groups.google.com/group/python_inside_maya/subscribe