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], [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 | ||
---|---|---|---|---|
objectComponent(ocm) |
boolean |
|||
|
||||
allObjects(alo) |
boolean |
|||
|
||||
handle(ha) |
boolean |
|||
|
||||
ikHandle(ikh) |
boolean |
|||
|
||||
ikEndEffector(iee) |
boolean |
|||
|
||||
joint(j) |
boolean |
|||
|
||||
light(lt) |
boolean |
|||
|
||||
camera(ca) |
boolean |
|||
|
||||
lattice(la) |
boolean |
|||
|
||||
cluster(cl) |
boolean |
|||
|
||||
sculpt(sc) |
boolean |
|||
|
||||
nonlinear(nl) |
boolean |
|||
|
||||
nurbsCurve(nc) |
boolean |
|||
|
||||
nurbsSurface(ns) |
boolean |
|||
|
||||
curveOnSurface(cos) |
boolean |
|||
|
||||
polymesh(p) |
boolean |
|||
|
||||
subdiv(sd) |
boolean |
|||
|
||||
stroke(str) |
boolean |
|||
|
||||
plane(pl) |
boolean |
|||
|
||||
particleShape(ps) |
boolean |
|||
|
||||
emitter(em) |
boolean |
|||
|
||||
field(fi) |
boolean |
|||
|
||||
fluid(fl) |
boolean |
|||
|
||||
hairSystem(hs) |
boolean |
|||
|
||||
follicle(fo) |
boolean |
|||
|
||||
nCloth(ncl) |
boolean |
|||
|
||||
nRigid(nr) |
boolean |
|||
|
||||
dynamicConstraint(dc) |
boolean |
|||
|
||||
nParticleShape(nps) |
boolean |
|||
|
||||
nParticle(npr) |
boolean |
|||
|
||||
collisionModel(clm) |
boolean |
|||
|
||||
spring(spr) |
boolean |
|||
|
||||
rigidBody(rb) |
boolean |
|||
|
||||
rigidConstraint(rc) |
boolean |
|||
|
||||
locatorXYZ(xyz) |
boolean |
|||
|
||||
orientationLocator(ol) |
boolean |
|||
|
||||
locatorUV(luv) |
boolean |
|||
|
||||
dimension(dim) |
boolean |
|||
|
||||
texture(tx) |
boolean |
|||
|
||||
implicitGeometry(ig) |
boolean |
|||
|
||||
locator(lc) |
boolean |
|||
|
||||
curve(c) |
boolean |
|||
|
||||
byName(bn) |
[string, boolean] |
|||
|
||||
queryByName(qbn) |
string |
|||
|
||||
allComponents(alc) |
boolean |
|||
|
||||
controlVertex(cv) |
boolean |
|||
|
||||
hull(hl) |
boolean |
|||
|
||||
editPoint(ep) |
boolean |
|||
|
||||
polymeshVertex(pv) |
boolean |
|||
|
||||
polymeshEdge(pe) |
boolean |
|||
|
||||
polymeshFreeEdge(pfe) |
boolean |
|||
|
||||
polymeshFace(pf) |
boolean |
|||
|
||||
polymeshUV(puv) |
boolean |
|||
|
||||
polymeshVtxFace(pvf) |
boolean |
|||
|
||||
vertex(v) |
boolean |
|||
|
||||
edge(eg) |
boolean |
|||
|
||||
facet(fc) |
boolean |
|||
|
||||
curveParameterPoint(cpp) |
boolean |
|||
|
||||
curveKnot(ck) |
boolean |
|||
|
||||
surfaceParameterPoint(spp) |
boolean |
|||
|
||||
surfaceKnot(sk) |
boolean |
|||
|
||||
surfaceRange(sr) |
boolean |
|||
|
||||
surfaceEdge(se) |
boolean |
|||
|
||||
surfaceFace(sf) |
boolean |
|||
|
||||
surfaceUV(suv) |
boolean |
|||
|
||||
isoparm(iso) |
boolean |
|||
|
||||
subdivMeshPoint(smp) |
boolean |
|||
|
||||
subdivMeshEdge(sme) |
boolean |
|||
|
||||
subdivMeshFace(smf) |
boolean |
|||
|
||||
subdivMeshUV(smu) |
boolean |
|||
|
||||
latticePoint(lp) |
boolean |
|||
|
||||
particle(pr) |
boolean |
|||
|
||||
springComponent(spc) |
boolean |
|||
|
||||
jointPivot(jp) |
boolean |
|||
|
||||
scalePivot(sp) |
boolean |
|||
|
||||
rotatePivot(rp) |
boolean |
|||
|
||||
selectHandle(sh) |
boolean |
|||
|
||||
localRotationAxis(ra) |
boolean |
|||
|
||||
imagePlane(ip) |
boolean |
|||
|
||||
animCurve(ac) |
boolean |
|||
|
||||
animKeyframe(ak) |
boolean |
|||
|
||||
animInTangent(ait) |
boolean |
|||
|
||||
animOutTangent(aot) |
boolean |
|||
|
||||
animBreakdown(abd) |
boolean |
|||
|
||||
motionTrailPoint(mtp) |
boolean |
|||
|
||||
motionTrailTangent(mtt) |
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 )