Go to: Synopsis. Return value. Related. Flags. Python examples.
selectPriority([allComponents=int], [allObjects=int], [animBreakdown=int], [animCurve=int], [animInTangent=int], [animKeyframe=int], [animOutTangent=int], [camera=int], [cluster=int], [collisionModel=int], [controlVertex=int], [curve=int], [curveKnot=int], [curveOnSurface=int], [curveParameterPoint=int], [dimension=int], [dynamicConstraint=int], [edge=int], [editPoint=int], [emitter=int], [facet=int], [field=int], [fluid=int], [follicle=int], [hairSystem=int], [handle=int], [hull=int], [ikEndEffector=int], [ikHandle=int], [imagePlane=int], [implicitGeometry=int], [isoparm=int], [joint=int], [jointPivot=int], [lattice=int], [latticePoint=int], [light=int], [localRotationAxis=int], [locator=int], [locatorUV=int], [locatorXYZ=int], [nCloth=int], [nRigid=int], [nonlinear=int], [nurbsCurve=int], [nurbsSurface=int], [orientationLocator=int], [particle=int], [particleShape=int], [plane=int], [polymesh=int], [polymeshEdge=int], [polymeshFace=int], [polymeshFreeEdge=int], [polymeshUV=int], [polymeshVertex=int], [polymeshVtxFace=int], [rigidBody=int], [rigidConstraint=int], [rotatePivot=int], [scalePivot=int], [sculpt=int], [selectHandle=int], [spring=int], [springComponent=int], [stroke=int], [subdiv=int], [subdivMeshEdge=int], [subdivMeshFace=int], [subdivMeshPoint=int], [subdivMeshUV=int], [surfaceEdge=int], [surfaceFace=int], [surfaceKnot=int], [surfaceParameterPoint=int], [surfaceRange=int], [texture=int], [vertex=int])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
selectPriority is undoable, queryable, and editable.
The selectPriority command 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.int if a query operation
In query mode, return type is based on queried flag.
| Long name (short name) | argument types | Properties | ||
|---|---|---|---|---|
allObjects(alo)
|
int
|
|
||
|
||||
handle(ha)
|
int
|
|
||
|
||||
ikHandle(ikh)
|
int
|
|
||
|
||||
joint(j)
|
int
|
|
||
|
||||
light(lt)
|
int
|
|
||
|
||||
camera(ca)
|
int
|
|
||
|
||||
lattice(la)
|
int
|
|
||
|
||||
cluster(cl)
|
int
|
|
||
|
||||
sculpt(sc)
|
int
|
|
||
|
||||
nonlinear(nl)
|
int
|
|
||
|
||||
nurbsCurve(nc)
|
int
|
|
||
|
||||
nurbsSurface(ns)
|
int
|
|
||
|
||||
curveOnSurface(cos)
|
int
|
|
||
|
||||
stroke(str)
|
int
|
|
||
|
||||
polymesh(p)
|
int
|
|
||
|
||||
plane(pl)
|
int
|
|
||
|
||||
subdiv(sd)
|
int
|
|
||
|
||||
particleShape(ps)
|
int
|
|
||
|
||||
emitter(em)
|
int
|
|
||
|
||||
field(fi)
|
int
|
|
||
|
||||
fluid(fl)
|
int
|
|
||
|
||||
hairSystem(hs)
|
int
|
|
||
|
||||
follicle(fo)
|
int
|
|
||
|
||||
nCloth(ncl)
|
int
|
|
||
|
||||
nRigid(nr)
|
int
|
|
||
|
||||
dynamicConstraint(dc)
|
int
|
|
||
|
||||
collisionModel(clm)
|
int
|
|
||
|
||||
spring(spr)
|
int
|
|
||
|
||||
rigidBody(rb)
|
int
|
|
||
|
||||
rigidConstraint(rc)
|
int
|
|
||
|
||||
locatorXYZ(xyz)
|
int
|
|
||
|
||||
orientationLocator(ol)
|
int
|
|
||
|
||||
locatorUV(luv)
|
int
|
|
||
|
||||
dimension(dim)
|
int
|
|
||
|
||||
texture(tx)
|
int
|
|
||
|
||||
implicitGeometry(ig)
|
int
|
|
||
|
||||
imagePlane(ip)
|
int
|
|
||
|
||||
locator(lc)
|
int
|
|
||
|
||||
curve(c)
|
int
|
|
||
|
||||
allComponents(alc)
|
int
|
|
||
|
||||
controlVertex(cv)
|
int
|
|
||
|
||||
hull(hl)
|
int
|
|
||
|
||||
editPoint(ep)
|
int
|
|
||
|
||||
polymeshVertex(pv)
|
int
|
|
||
|
||||
polymeshEdge(pe)
|
int
|
|
||
|
||||
polymeshFreeEdge(pfe)
|
int
|
|
||
|
||||
polymeshFace(pf)
|
int
|
|
||
|
||||
polymeshUV(puv)
|
int
|
|
||
|
||||
polymeshVtxFace(pvf)
|
int
|
|
||
|
||||
vertex(v)
|
int
|
|
||
|
||||
edge(eg)
|
int
|
|
||
|
||||
facet(fc)
|
int
|
|
||
|
||||
curveParameterPoint(cpp)
|
int
|
|
||
|
||||
curveKnot(ck)
|
int
|
|
||
|
||||
surfaceParameterPoint(spp)
|
int
|
|
||
|
||||
surfaceKnot(sk)
|
int
|
|
||
|
||||
surfaceRange(sr)
|
int
|
|
||
|
||||
surfaceEdge(se)
|
int
|
|
||
|
||||
surfaceFace(sf)
|
int
|
|
||
|
||||
isoparm(iso)
|
int
|
|
||
|
||||
subdivMeshPoint(smp)
|
int
|
|
||
|
||||
subdivMeshEdge(sme)
|
int
|
|
||
|
||||
subdivMeshFace(smf)
|
int
|
|
||
|
||||
subdivMeshUV(smu)
|
int
|
|
||
|
||||
latticePoint(lp)
|
int
|
|
||
|
||||
particle(pr)
|
int
|
|
||
|
||||
springComponent(spc)
|
int
|
|
||
|
||||
jointPivot(jp)
|
int
|
|
||
|
||||
ikEndEffector(iee)
|
int
|
|
||
|
||||
scalePivot(sp)
|
int
|
|
||
|
||||
rotatePivot(rp)
|
int
|
|
||
|
||||
selectHandle(sh)
|
int
|
|
||
|
||||
localRotationAxis(ra)
|
int
|
|
||
|
||||
animCurve(ac)
|
int
|
|
||
|
||||
animKeyframe(ak)
|
int
|
|
||
|
||||
animInTangent(ait)
|
int
|
|
||
|
||||
animOutTangent(aot)
|
int
|
|
||
|
||||
animBreakdown(abd)
|
int
|
|
||
|
||||
import maya.cmds as cmds cmds.selectPriority( q=True, nurbsCurve=True ) cmds.selectPriority( nurbsCurve=10 ) cmds.selectPriority( handle=9, ikHandle=8 )