The selectTypecommand 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 objectand componentcommand 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.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
allComponents (alc) | bool | ||
|
|||
allObjects (alo) | bool | ||
|
|||
animBreakdown (abd) | bool | ||
|
|||
animCurve (ac) | bool | ||
|
|||
animInTangent (ait) | bool | ||
|
|||
animKeyframe (ak) | bool | ||
|
|||
animOutTangent (aot) | bool | ||
|
|||
camera (ca) | bool | ||
|
|||
cluster (cl) | bool | ||
|
|||
collisionModel (clm) | bool | ||
|
|||
controlVertex (cv) | bool | ||
|
|||
curve (c) | bool | ||
|
|||
curveKnot (ck) | bool | ||
|
|||
curveOnSurface (cos) | bool | ||
|
|||
curveParameterPoint (cpp) | bool | ||
|
|||
dimension (dim) | bool | ||
|
|||
dynamicConstraint (dc) | bool | ||
|
|||
edge (eg) | bool | ||
|
|||
editPoint (ep) | bool | ||
|
|||
emitter (em) | bool | ||
|
|||
facet (fc) | bool | ||
|
|||
field (fi) | bool | ||
|
|||
fluid (fl) | bool | ||
|
|||
follicle (fo) | bool | ||
|
|||
hairSystem (hs) | bool | ||
|
|||
handle (ha) | bool | ||
|
|||
hull (hl) | bool | ||
|
|||
ikEndEffector (iee) | bool | ||
|
|||
ikHandle (ikh) | bool | ||
|
|||
imagePlane (ip) | bool | ||
|
|||
implicitGeometry (ig) | bool | ||
|
|||
isoparm (iso) | bool | ||
|
|||
joint (j) | bool | ||
|
|||
jointPivot (jp) | bool | ||
|
|||
lattice (la) | bool | ||
|
|||
latticePoint (lp) | bool | ||
|
|||
light (lt) | bool | ||
|
|||
localRotationAxis (ra) | bool | ||
|
|||
locator (lc) | bool | ||
|
|||
locatorUV (luv) | bool | ||
|
|||
locatorXYZ (xyz) | bool | ||
|
|||
meshComponents (mc) | bool | ||
motionTrailPoint (mtp) | bool | ||
motionTrailTangent (mtt) | bool | ||
nCloth (ncl) | bool | ||
|
|||
nParticle (npr) | bool | ||
|
|||
nParticleShape (nps) | bool | ||
|
|||
nRigid (nr) | bool | ||
|
|||
nonlinear (nl) | bool | ||
|
|||
nurbsCurve (nc) | bool | ||
|
|||
nurbsSurface (ns) | bool | ||
|
|||
objectComponent (ocm) | bool | ||
|
|||
orientationLocator (ol) | bool | ||
|
|||
particle (pr) | bool | ||
|
|||
particleShape (ps) | bool | ||
|
|||
plane (pl) | bool | ||
|
|||
polymesh (p) | bool | ||
|
|||
polymeshEdge (pe) | bool | ||
|
|||
polymeshFace (pf) | bool | ||
|
|||
polymeshFreeEdge (pfe) | bool | ||
|
|||
polymeshUV (puv) | bool | ||
|
|||
polymeshVertex (pv) | bool | ||
|
|||
polymeshVtxFace (pvf) | bool | ||
|
|||
rigidBody (rb) | bool | ||
|
|||
rigidConstraint (rc) | bool | ||
|
|||
rotatePivot (rp) | bool | ||
|
|||
scalePivot (sp) | bool | ||
|
|||
sculpt (sc) | bool | ||
|
|||
selectHandle (sh) | bool | ||
|
|||
sets (set) | bool | ||
slugObject (slo) | bool | ||
slugVertex (sv) | bool | ||
spotlightComponent (slc) | bool | ||
spring (spr) | bool | ||
|
|||
springComponent (spc) | bool | ||
|
|||
stroke (str) | bool | ||
|
|||
subdiv (sd) | bool | ||
|
|||
subdivMeshEdge (sme) | bool | ||
|
|||
subdivMeshFace (smf) | bool | ||
|
|||
subdivMeshPoint (smp) | bool | ||
|
|||
subdivMeshUV (smu) | bool | ||
|
|||
subdivisionPolymesh (spl) | bool | ||
subdivisionPolymeshEdge (spe) | bool | ||
subdivisionPolymeshFace (spf) | bool | ||
subdivisionPolymeshVertex (spv) | bool | ||
surfaceEdge (se) | bool | ||
|
|||
surfaceFace (sf) | bool | ||
|
|||
surfaceKnot (sk) | bool | ||
|
|||
surfaceParameterPoint (spp) | bool | ||
|
|||
surfaceRange (sr) | bool | ||
|
|||
surfaceUV (suv) | bool | ||
|
|||
texture (tx) | bool | ||
|
|||
vertex (v) | bool | ||
|
Derived from mel command maya.cmds.selectType
Example:
import pymel.core as pm
pm.selectType( allObjects=True )
pm.selectType( q=True, cv=True )
# Result: True #
pm.selectType( allObjects=True, allComponents=False )