pymel.core.general.selectPriority

selectPriority(*args, **kwargs)

The selectPrioritycommand is used to change the selection priority of particular types of objects that can be selected when using the select tool. It accepts no other arguments besides the flags. These flags are the same as used by the ‘selectType’ command.

Flags:

Long Name / Short Name Argument Types Properties
allComponents / alc int ../../../_images/create.gif ../../../_images/query.gif
  Set all component selection priority
allObjects / alo int ../../../_images/create.gif ../../../_images/query.gif
  Set all object selection priority
animBreakdown / abd int ../../../_images/create.gif ../../../_images/query.gif
  Set animation breakdown selection priority
animCurve / ac int ../../../_images/create.gif ../../../_images/query.gif
  Set animation curve selection priority
animInTangent / ait int ../../../_images/create.gif ../../../_images/query.gif
  Set animation in-tangent selection priority
animKeyframe / ak int ../../../_images/create.gif ../../../_images/query.gif
  Set animation keyframe selection priority
animOutTangent / aot int ../../../_images/create.gif ../../../_images/query.gif
  Set animation out-tangent selection priority
byName / bn unicode, bool ../../../_images/create.gif
  Set selection priority for the specified user-defined selection type
camera / ca int ../../../_images/create.gif ../../../_images/query.gif
  Set camera selection priority
cluster / cl int ../../../_images/create.gif ../../../_images/query.gif
  Set cluster selection priority
collisionModel / clm int ../../../_images/create.gif ../../../_images/query.gif
  Set collision model selection priority
controlVertex / cv int ../../../_images/create.gif ../../../_images/query.gif
  Set control vertex selection priority
curve / c int ../../../_images/create.gif ../../../_images/query.gif
  Set curve selection priority
curveKnot / ck int ../../../_images/create.gif ../../../_images/query.gif
  Set curve knot selection priority
curveOnSurface / cos int ../../../_images/create.gif ../../../_images/query.gif
  Set curve-on-surface selection priority
curveParameterPoint / cpp int ../../../_images/create.gif ../../../_images/query.gif
  Set curve parameter point selection priority
dimension / dim int ../../../_images/create.gif ../../../_images/query.gif
  Set dimension shape selection priority
dynamicConstraint / dc int ../../../_images/create.gif ../../../_images/query.gif
  Set dynamicConstraint selection priority
edge / eg int ../../../_images/create.gif ../../../_images/query.gif
  Set mesh edge selection priority
editPoint / ep int ../../../_images/create.gif ../../../_images/query.gif
  Set edit-point selection priority
emitter / em int ../../../_images/create.gif ../../../_images/query.gif
  Set emitter selection priority
facet / fc int ../../../_images/create.gif ../../../_images/query.gif
  Set mesh face selection priority
field / fi int ../../../_images/create.gif ../../../_images/query.gif
  Set field selection priority
fluid / fl int ../../../_images/create.gif ../../../_images/query.gif
  Set fluid selection priority
follicle / fo int ../../../_images/create.gif ../../../_images/query.gif
  Set follicle selection priority
hairSystem / hs int ../../../_images/create.gif ../../../_images/query.gif
  Set hairSystem selection priority
handle / ha int ../../../_images/create.gif ../../../_images/query.gif
  Set object handle selection priority
hull / hl int ../../../_images/create.gif ../../../_images/query.gif
  Set hull selection priority
ikEndEffector / iee int ../../../_images/create.gif ../../../_images/query.gif
  Set ik end effector selection priority
ikHandle / ikh int ../../../_images/create.gif ../../../_images/query.gif
  Set ik handle selection priority
imagePlane / ip int ../../../_images/create.gif ../../../_images/query.gif
  Set image plane selection mask priority
implicitGeometry / ig int ../../../_images/create.gif ../../../_images/query.gif
  Set implicit geometry selection priority
isoparm / iso int ../../../_images/create.gif ../../../_images/query.gif
  Set surface iso-parm selection priority
joint / j int ../../../_images/create.gif ../../../_images/query.gif
  Set ik handle selection priority
jointPivot / jp int ../../../_images/create.gif ../../../_images/query.gif
  Set joint pivot selection priority
lattice / la int ../../../_images/create.gif ../../../_images/query.gif
  Set lattice selection priority
latticePoint / lp int ../../../_images/create.gif ../../../_images/query.gif
  Set lattice point selection priority
light / lt int ../../../_images/create.gif ../../../_images/query.gif
  Set light selection priority
localRotationAxis / ra int ../../../_images/create.gif ../../../_images/query.gif
  Set local rotation axis selection priority
locator / lc int ../../../_images/create.gif ../../../_images/query.gif
  Set locator (all types) selection priority
locatorUV / luv int ../../../_images/create.gif ../../../_images/query.gif
  Set uv locator selection priority
locatorXYZ / xyz int ../../../_images/create.gif ../../../_images/query.gif
  Set xyz locator selection priority
meshUVShell / msh int ../../../_images/create.gif ../../../_images/query.gif
  Set uv shell component mask on/off.
motionTrailPoint / mtp int ../../../_images/create.gif ../../../_images/query.gif
  Set motion point selection priority
motionTrailTangent / mtt int ../../../_images/create.gif ../../../_images/query.gif
  Set motion point tangent priority
nCloth / ncl int ../../../_images/create.gif ../../../_images/query.gif
  Set nCloth selection priority
nParticle / npr int ../../../_images/create.gif ../../../_images/query.gif
  Set nParticle point selection priority
nParticleShape / nps int ../../../_images/create.gif ../../../_images/query.gif
  Set nParticle shape selection priority
nRigid / nr int ../../../_images/create.gif ../../../_images/query.gif
  Set nRigid selection priority
nonlinear / nl int ../../../_images/create.gif ../../../_images/query.gif
  Set nonlinear selection priority
nurbsCurve / nc int ../../../_images/create.gif ../../../_images/query.gif
  Set nurbs-curve selection priority
nurbsSurface / ns int ../../../_images/create.gif ../../../_images/query.gif
  Set nurbs-surface selection priority
orientationLocator / ol int ../../../_images/create.gif ../../../_images/query.gif
  Set orientation locator selection priority
particle / pr int ../../../_images/create.gif ../../../_images/query.gif
  Set particle point selection priority
particleShape / ps int ../../../_images/create.gif ../../../_images/query.gif
  Set particle shape selection priority
plane / pl int ../../../_images/create.gif ../../../_images/query.gif
  Set sketch plane selection priority
polymesh / p int ../../../_images/create.gif ../../../_images/query.gif
  Set poly-mesh selection priority
polymeshEdge / pe int ../../../_images/create.gif ../../../_images/query.gif
  Set poly-mesh edge selection priority
polymeshFace / pf int ../../../_images/create.gif ../../../_images/query.gif
  Set poly-mesh face selection priority
polymeshFreeEdge / pfe int ../../../_images/create.gif ../../../_images/query.gif
  Set poly-mesh free-edge selection priority
polymeshUV / puv int ../../../_images/create.gif ../../../_images/query.gif
  Set poly-mesh UV point selection priority
polymeshVertex / pv int ../../../_images/create.gif ../../../_images/query.gif
  Set poly-mesh vertex selection priority
polymeshVtxFace / pvf int ../../../_images/create.gif ../../../_images/query.gif
  Set poly-mesh vtxFace selection priority
queryByName / qbn unicode ../../../_images/query.gif
  Query selection priority for the specified user-defined selection type
rigidBody / rb int ../../../_images/create.gif ../../../_images/query.gif
  Set rigid body selection priority
rigidConstraint / rc int ../../../_images/create.gif ../../../_images/query.gif
  Set rigid constraint selection priority
rotatePivot / rp int ../../../_images/create.gif ../../../_images/query.gif
  Set rotate pivot selection priority
scalePivot / sp int ../../../_images/create.gif ../../../_images/query.gif
  Set scale pivot selection priority
sculpt / sc int ../../../_images/create.gif ../../../_images/query.gif
  Set sculpt selection priority
selectHandle / sh int ../../../_images/create.gif ../../../_images/query.gif
  Set select handle selection priority
spring / spr int ../../../_images/create.gif ../../../_images/query.gif
  Set spring shape selection priority
springComponent / spc int ../../../_images/create.gif ../../../_images/query.gif
  Set individual spring selection priority
stroke / str int ../../../_images/create.gif ../../../_images/query.gif
  Set stroke selection priority
subdiv / sd int ../../../_images/create.gif ../../../_images/query.gif
  Set subdivision surface selection priority
subdivMeshEdge / sme int ../../../_images/create.gif ../../../_images/query.gif
  Set subdivision surface mesh edge selection priority
subdivMeshFace / smf int ../../../_images/create.gif ../../../_images/query.gif
  Set subdivision surface mesh face selection priority
subdivMeshPoint / smp int ../../../_images/create.gif ../../../_images/query.gif
  Set subdivision surface mesh point selection priority
subdivMeshUV / smu int ../../../_images/create.gif ../../../_images/query.gif
  Set subdivision surface mesh UV map selection priority
surfaceEdge / se int ../../../_images/create.gif ../../../_images/query.gif
  Set surface edge selection priority
surfaceFace / sf int ../../../_images/create.gif ../../../_images/query.gif
  Set surface face selection priority
surfaceKnot / sk int ../../../_images/create.gif ../../../_images/query.gif
  Set surface knot selection priority
surfaceParameterPoint / spp int ../../../_images/create.gif ../../../_images/query.gif
  Set surface parameter point selection priority
surfaceRange / sr int ../../../_images/create.gif ../../../_images/query.gif
  Set surface range selection priority
texture / tx int ../../../_images/create.gif ../../../_images/query.gif
  Set texture selection priority
vertex / v int ../../../_images/create.gif ../../../_images/query.gif
  Set mesh vertex selection priority Flag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.selectPriority

Example:

import pymel.core as pm

pm.selectPriority( q=True, nurbsCurve=True )
# Result: 2 #
pm.selectPriority( nurbsCurve=10 )
pm.selectPriority( handle=9, ikHandle=8 )