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