Go to: Synopsis. Return value. Related. Flags. Python examples.
selectType([allComponents=boolean], [allObjects=boolean], [animBreakdown=boolean], [animCurve=boolean], [animInTangent=boolean], [animKeyframe=boolean], [animOutTangent=boolean], [byName=[string, boolean]], [camera=boolean], [cluster=boolean], [collisionModel=boolean], [controlVertex=boolean], [curve=boolean], [curveKnot=boolean], [curveOnSurface=boolean], [curveParameterPoint=boolean], [dimension=boolean], [dynamicConstraint=boolean], [edge=boolean], [editPoint=boolean], [emitter=boolean], [facet=boolean], [field=boolean], [fluid=boolean], [follicle=boolean], [hairSystem=boolean], [handle=boolean], [hull=boolean], [ikEndEffector=boolean], [ikHandle=boolean], [imagePlane=boolean], [implicitGeometry=boolean], [isoparm=boolean], [joint=boolean], [jointPivot=boolean], [lattice=boolean], [latticePoint=boolean], [light=boolean], [localRotationAxis=boolean], [locator=boolean], [locatorUV=boolean], [locatorXYZ=boolean], [meshUVShell=boolean], [motionTrailPoint=boolean], [motionTrailTangent=boolean], [nCloth=boolean], [nParticle=boolean], [nParticleShape=boolean], [nRigid=boolean], [nonlinear=boolean], [nurbsCurve=boolean], [nurbsSurface=boolean], [objectComponent=boolean], [orientationLocator=boolean], [particle=boolean], [particleShape=boolean], [plane=boolean], [polymesh=boolean], [polymeshEdge=boolean], [polymeshFace=boolean], [polymeshFreeEdge=boolean], [polymeshUV=boolean], [polymeshVertex=boolean], [polymeshVtxFace=boolean], [queryByName=string], [rigidBody=boolean], [rigidConstraint=boolean], [rotatePivot=boolean], [scalePivot=boolean], [sculpt=boolean], [selectHandle=boolean], [spring=boolean], [springComponent=boolean], [stroke=boolean], [subdiv=boolean], [subdivMeshEdge=boolean], [subdivMeshFace=boolean], [subdivMeshPoint=boolean], [subdivMeshUV=boolean], [surfaceEdge=boolean], [surfaceFace=boolean], [surfaceKnot=boolean], [surfaceParameterPoint=boolean], [surfaceRange=boolean], [surfaceUV=boolean], [texture=boolean], [vertex=boolean])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
selectType is undoable, queryable, and NOT editable.
The selectType command is used to change the set of allowable types of objects that can be selected when using the select tool. It accepts no other arguments besides the flags. There are basically two different types of items that are selectable when interactively selecting objects in the 3D views. They are classified as objects (entire objects) or components (parts of objects). The object and component command flags control which class of objects are selectable. It is possible to select components while in the object selection mode. To set the components which are selectable in object selection mode you must use the -ocm flag when specifying the component flags.boolean | if a query operation |
In query mode, return type is based on queried flag.
Long name (short name) | Argument types | Properties | ||
---|---|---|---|---|
allComponents(alc)
|
boolean
|
|||
|
||||
allObjects(alo)
|
boolean
|
|||
|
||||
animBreakdown(abd)
|
boolean
|
|||
|
||||
animCurve(ac)
|
boolean
|
|||
|
||||
animInTangent(ait)
|
boolean
|
|||
|
||||
animKeyframe(ak)
|
boolean
|
|||
|
||||
animOutTangent(aot)
|
boolean
|
|||
|
||||
byName(bn)
|
[string, boolean]
|
|||
|
||||
camera(ca)
|
boolean
|
|||
|
||||
cluster(cl)
|
boolean
|
|||
|
||||
collisionModel(clm)
|
boolean
|
|||
|
||||
controlVertex(cv)
|
boolean
|
|||
|
||||
curve(c)
|
boolean
|
|||
|
||||
curveKnot(ck)
|
boolean
|
|||
|
||||
curveOnSurface(cos)
|
boolean
|
|||
|
||||
curveParameterPoint(cpp)
|
boolean
|
|||
|
||||
dimension(dim)
|
boolean
|
|||
|
||||
dynamicConstraint(dc)
|
boolean
|
|||
|
||||
edge(eg)
|
boolean
|
|||
|
||||
editPoint(ep)
|
boolean
|
|||
|
||||
emitter(em)
|
boolean
|
|||
|
||||
facet(fc)
|
boolean
|
|||
|
||||
field(fi)
|
boolean
|
|||
|
||||
fluid(fl)
|
boolean
|
|||
|
||||
follicle(fo)
|
boolean
|
|||
|
||||
hairSystem(hs)
|
boolean
|
|||
|
||||
handle(ha)
|
boolean
|
|||
|
||||
hull(hl)
|
boolean
|
|||
|
||||
ikEndEffector(iee)
|
boolean
|
|||
|
||||
ikHandle(ikh)
|
boolean
|
|||
|
||||
imagePlane(ip)
|
boolean
|
|||
|
||||
implicitGeometry(ig)
|
boolean
|
|||
|
||||
isoparm(iso)
|
boolean
|
|||
|
||||
joint(j)
|
boolean
|
|||
|
||||
jointPivot(jp)
|
boolean
|
|||
|
||||
lattice(la)
|
boolean
|
|||
|
||||
latticePoint(lp)
|
boolean
|
|||
|
||||
light(lt)
|
boolean
|
|||
|
||||
localRotationAxis(ra)
|
boolean
|
|||
|
||||
locator(lc)
|
boolean
|
|||
|
||||
locatorUV(luv)
|
boolean
|
|||
|
||||
locatorXYZ(xyz)
|
boolean
|
|||
|
||||
meshUVShell(msh)
|
boolean
|
|||
|
||||
motionTrailPoint(mtp)
|
boolean
|
|||
|
||||
motionTrailTangent(mtt)
|
boolean
|
|||
|
||||
nCloth(ncl)
|
boolean
|
|||
|
||||
nParticle(npr)
|
boolean
|
|||
|
||||
nParticleShape(nps)
|
boolean
|
|||
|
||||
nRigid(nr)
|
boolean
|
|||
|
||||
nonlinear(nl)
|
boolean
|
|||
|
||||
nurbsCurve(nc)
|
boolean
|
|||
|
||||
nurbsSurface(ns)
|
boolean
|
|||
|
||||
objectComponent(ocm)
|
boolean
|
|||
|
||||
orientationLocator(ol)
|
boolean
|
|||
|
||||
particle(pr)
|
boolean
|
|||
|
||||
particleShape(ps)
|
boolean
|
|||
|
||||
plane(pl)
|
boolean
|
|||
|
||||
polymesh(p)
|
boolean
|
|||
|
||||
polymeshEdge(pe)
|
boolean
|
|||
|
||||
polymeshFace(pf)
|
boolean
|
|||
|
||||
polymeshFreeEdge(pfe)
|
boolean
|
|||
|
||||
polymeshUV(puv)
|
boolean
|
|||
|
||||
polymeshVertex(pv)
|
boolean
|
|||
|
||||
polymeshVtxFace(pvf)
|
boolean
|
|||
|
||||
queryByName(qbn)
|
string
|
|||
|
||||
rigidBody(rb)
|
boolean
|
|||
|
||||
rigidConstraint(rc)
|
boolean
|
|||
|
||||
rotatePivot(rp)
|
boolean
|
|||
|
||||
scalePivot(sp)
|
boolean
|
|||
|
||||
sculpt(sc)
|
boolean
|
|||
|
||||
selectHandle(sh)
|
boolean
|
|||
|
||||
spring(spr)
|
boolean
|
|||
|
||||
springComponent(spc)
|
boolean
|
|||
|
||||
stroke(str)
|
boolean
|
|||
|
||||
subdiv(sd)
|
boolean
|
|||
|
||||
subdivMeshEdge(sme)
|
boolean
|
|||
|
||||
subdivMeshFace(smf)
|
boolean
|
|||
|
||||
subdivMeshPoint(smp)
|
boolean
|
|||
|
||||
subdivMeshUV(smu)
|
boolean
|
|||
|
||||
surfaceEdge(se)
|
boolean
|
|||
|
||||
surfaceFace(sf)
|
boolean
|
|||
|
||||
surfaceKnot(sk)
|
boolean
|
|||
|
||||
surfaceParameterPoint(spp)
|
boolean
|
|||
|
||||
surfaceRange(sr)
|
boolean
|
|||
|
||||
surfaceUV(suv)
|
boolean
|
|||
|
||||
texture(tx)
|
boolean
|
|||
|
||||
vertex(v)
|
boolean
|
|||
|
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.selectType( allObjects=True ) cmds.selectType( q=True, cv=True ) cmds.selectType( allObjects=True, allComponents=False )