pymel.core.general.selectType — PyMEL 1.0.7 documentation

pymel.core.general.selectType

selectType(*args, **kwargs)

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.

Flags:

Long Name / Short Name Argument Types Properties
allComponents / alc bool ../../../_images/create.gif ../../../_images/query.gif
 
Set all component selection masks on/off
allObjects / alo bool ../../../_images/create.gif ../../../_images/query.gif
 
Set all object selection masks on/off
animBreakdown / abd bool ../../../_images/create.gif ../../../_images/query.gif
 
Set animation breakdown selection mask on/off.
animCurve / ac bool ../../../_images/create.gif ../../../_images/query.gif
 
Set animation curve selection mask on/off.
animInTangent / ait bool ../../../_images/create.gif ../../../_images/query.gif
 
Set animation in-tangent selection mask on/off.
animKeyframe / ak bool ../../../_images/create.gif ../../../_images/query.gif
 
Set animation keyframe selection mask on/off.
animOutTangent / aot bool ../../../_images/create.gif ../../../_images/query.gif
 
Set animation out-tangent selection mask on/off.
byName / bn unicode, bool ../../../_images/create.gif
 
Set the specified user-defined selection mask on/off. (object flag)
camera / ca bool ../../../_images/create.gif ../../../_images/query.gif
 
Set camera selection mask on/off. (object flag)
cluster / cl bool ../../../_images/create.gif ../../../_images/query.gif
 
Set cluster selection mask on/off. (object flag)
collisionModel / clm bool ../../../_images/create.gif ../../../_images/query.gif
 
Set collision model selection mask on/off. (object flag)
controlVertex / cv bool ../../../_images/create.gif ../../../_images/query.gif
 
Set control vertex selection mask on/off. (component flag)
curve / c bool ../../../_images/create.gif ../../../_images/query.gif
 
Set curve selection mask on/off. (object flag)
curveKnot / ck bool ../../../_images/create.gif ../../../_images/query.gif
 
Set curve knot selection mask on/off. (component flag)
curveOnSurface / cos bool ../../../_images/create.gif ../../../_images/query.gif
 
Set curve-on-surface selection mask on/off. (object flag)
curveParameterPoint / cpp bool ../../../_images/create.gif ../../../_images/query.gif
 
Set curve parameter point selection mask on/off. (component flag)
dimension / dim bool ../../../_images/create.gif ../../../_images/query.gif
 
Set dimension shape selection mask on/off. (object flag)
dynamicConstraint / dc bool ../../../_images/create.gif ../../../_images/query.gif
 
Set dynamicConstraint selection mask on/off. (object flag)
edge / eg bool ../../../_images/create.gif ../../../_images/query.gif
 
Set mesh edge selection mask on/off. (component flag)
editPoint / ep bool ../../../_images/create.gif ../../../_images/query.gif
 
Set edit-point selection mask on/off. (component flag)
emitter / em bool ../../../_images/create.gif ../../../_images/query.gif
 
Set emitter selection mask on/off. (object flag)
facet / fc bool ../../../_images/create.gif ../../../_images/query.gif
 
Set mesh face selection mask on/off. (component flag)
field / fi bool ../../../_images/create.gif ../../../_images/query.gif
 
Set field selection mask on/off. (object flag)
fluid / fl bool ../../../_images/create.gif ../../../_images/query.gif
 
Set fluid selection mask on/off. (object flag)
follicle / fo bool ../../../_images/create.gif ../../../_images/query.gif
 
Set follicle selection mask on/off. (object flag)
hairSystem / hs bool ../../../_images/create.gif ../../../_images/query.gif
 
Set hairSystem selection mask on/off. (object flag)
handle / ha bool ../../../_images/create.gif ../../../_images/query.gif
 
Set object handle selection mask on/off. (object flag)
hull / hl bool ../../../_images/create.gif ../../../_images/query.gif
 
Set hull selection mask on/off. (component flag)
ikEndEffector / iee bool ../../../_images/create.gif ../../../_images/query.gif
 
Set ik end effector selection mask on/off. (object flag)
ikHandle / ikh bool ../../../_images/create.gif ../../../_images/query.gif
 
Set ik handle selection mask on/off. (object flag)
imagePlane / ip bool ../../../_images/create.gif ../../../_images/query.gif
 
Set image plane selection mask on/off. (component flag)
implicitGeometry / ig bool ../../../_images/create.gif ../../../_images/query.gif
 
Set implicit geometry selection mask on/off. (object flag)
isoparm / iso bool ../../../_images/create.gif ../../../_images/query.gif
 
Set surface iso-parm selection mask on/off. (component flag)
joint / j bool ../../../_images/create.gif ../../../_images/query.gif
 
Set ik handle selection mask on/off. (object flag)
jointPivot / jp bool ../../../_images/create.gif ../../../_images/query.gif
 
Set joint pivot selection mask on/off. (component flag)
lattice / la bool ../../../_images/create.gif ../../../_images/query.gif
 
Set lattice selection mask on/off. (object flag)
latticePoint / lp bool ../../../_images/create.gif ../../../_images/query.gif
 
Set lattice point selection mask on/off. (component flag)
light / lt bool ../../../_images/create.gif ../../../_images/query.gif
 
Set light selection mask on/off. (object flag)
localRotationAxis / ra bool ../../../_images/create.gif ../../../_images/query.gif
 
Set local rotation axis selection mask on/off. (component flag)
locator / lc bool ../../../_images/create.gif ../../../_images/query.gif
 
Set locator (all types) selection mask on/off. (object flag)
locatorUV / luv bool ../../../_images/create.gif ../../../_images/query.gif
 
Set uv locator selection mask on/off. (object flag)
locatorXYZ / xyz bool ../../../_images/create.gif ../../../_images/query.gif
 
Set xyz locator selection mask on/off. (object flag)
meshComponents / mc bool  
   
meshUVShell / msh bool ../../../_images/create.gif ../../../_images/query.gif
 
Set uv shell component mask on/off. Flag can have multiple arguments, passed either as a tuple or a list.
motionTrailPoint / mtp bool ../../../_images/create.gif ../../../_images/query.gif
 
Set motion point selection mask on/off.
motionTrailTangent / mtt bool ../../../_images/create.gif ../../../_images/query.gif
 
Set motion point tangent mask on/off.
nCloth / ncl bool ../../../_images/create.gif ../../../_images/query.gif
 
Set nCloth selection mask on/off. (object flag)
nParticle / npr bool ../../../_images/create.gif ../../../_images/query.gif
 
Set nParticle point selection mask on/off. (component flag)
nParticleShape / nps bool ../../../_images/create.gif ../../../_images/query.gif
 
Set nParticle shape selection mask on/off. (object flag)
nRigid / nr bool ../../../_images/create.gif ../../../_images/query.gif
 
Set nRigid selection mask on/off. (object flag)
nonlinear / nl bool ../../../_images/create.gif ../../../_images/query.gif
 
Set nonlinear selection mask on/off. (object flag)
nurbsCurve / nc bool ../../../_images/create.gif ../../../_images/query.gif
 
Set nurbs-curve selection mask on/off. (object flag)
nurbsSurface / ns bool ../../../_images/create.gif ../../../_images/query.gif
 
Set nurbs-surface selection mask on/off. (object flag)
objectComponent / ocm bool ../../../_images/create.gif ../../../_images/query.gif
 
Component flags apply to object mode.
orientationLocator / ol bool ../../../_images/create.gif ../../../_images/query.gif
 
Set orientation locator selection mask on/off. (object flag)
particle / pr bool ../../../_images/create.gif ../../../_images/query.gif
 
Set particle point selection mask on/off. (component flag)
particleShape / ps bool ../../../_images/create.gif ../../../_images/query.gif
 
Set particle shape selection mask on/off. (object flag)
plane / pl bool ../../../_images/create.gif ../../../_images/query.gif
 
Set sketch plane selection mask on/off. (object flag)
polymesh / p bool ../../../_images/create.gif ../../../_images/query.gif
 
Set poly-mesh selection mask on/off. (object flag)
polymeshEdge / pe bool ../../../_images/create.gif ../../../_images/query.gif
 
Set poly-mesh edge selection mask on/off. (component flag)
polymeshFace / pf bool ../../../_images/create.gif ../../../_images/query.gif
 
Set poly-mesh face selection mask on/off. (component flag)
polymeshFreeEdge / pfe bool ../../../_images/create.gif ../../../_images/query.gif
 
Set poly-mesh free-edge selection mask on/off. (component flag)
polymeshUV / puv bool ../../../_images/create.gif ../../../_images/query.gif
 
Set poly-mesh UV point selection mask on/off. (component flag)
polymeshVertex / pv bool ../../../_images/create.gif ../../../_images/query.gif
 
Set poly-mesh vertex selection mask on/off. (component flag)
polymeshVtxFace / pvf bool ../../../_images/create.gif ../../../_images/query.gif
 
Set poly-mesh vertexFace selection mask on/off. (component flag)
queryByName / qbn unicode ../../../_images/query.gif
 
Query the specified user-defined selection mask. (object flag)
rigidBody / rb bool ../../../_images/create.gif ../../../_images/query.gif
 
Set rigid body selection mask on/off. (object flag)
rigidConstraint / rc bool ../../../_images/create.gif ../../../_images/query.gif
 
Set rigid constraint selection mask on/off. (object flag)
rotatePivot / rp bool ../../../_images/create.gif ../../../_images/query.gif
 
Set rotate pivot selection mask on/off. (component flag)
scalePivot / sp bool ../../../_images/create.gif ../../../_images/query.gif
 
Set scale pivot selection mask on/off. (component flag)
sculpt / sc bool ../../../_images/create.gif ../../../_images/query.gif
 
Set sculpt selection mask on/off. (object flag)
selectHandle / sh bool ../../../_images/create.gif ../../../_images/query.gif
 
Set select handle selection mask on/off. (component flag)
sets / set bool  
   
slugObject / slo bool  
   
slugVertex / sv bool  
   
spotlightComponent / slc bool  
   
spring / spr bool ../../../_images/create.gif ../../../_images/query.gif
 
Set spring shape selection mask on/off. (object flag)
springComponent / spc bool ../../../_images/create.gif ../../../_images/query.gif
 
Set individual spring selection mask on/off. (component flag)
stroke / str bool ../../../_images/create.gif ../../../_images/query.gif
 
Set the Paint Effects stroke selection mask on/off. (object flag)
subdiv / sd bool ../../../_images/create.gif ../../../_images/query.gif
 
Set subdivision surfaces selection mask on/off. (object flag)
subdivMeshEdge / sme bool ../../../_images/create.gif ../../../_images/query.gif
 
Set subdivision surfaces mesh edge selection mask on/off. (component flag)
subdivMeshFace / smf bool ../../../_images/create.gif ../../../_images/query.gif
 
Set subdivision surfaces mesh face selection mask on/off. (component flag)
subdivMeshPoint / smp bool ../../../_images/create.gif ../../../_images/query.gif
 
Set subdivision surfaces mesh point selection mask on/off. (component flag)
subdivMeshUV / smu bool ../../../_images/create.gif ../../../_images/query.gif
 
Set subdivision surfaces mesh UV map selection mask on/off. (component flag)
subdivisionPolymesh / spl bool  
   
subdivisionPolymeshEdge / spe bool  
   
subdivisionPolymeshFace / spf bool  
   
subdivisionPolymeshVertex / spv bool  
   
surfaceEdge / se bool ../../../_images/create.gif ../../../_images/query.gif
 
Set surface edge selection mask on/off. (component flag)
surfaceFace / sf bool ../../../_images/create.gif ../../../_images/query.gif
 
Set surface face selection mask on/off. (component flag)
surfaceKnot / sk bool ../../../_images/create.gif ../../../_images/query.gif
 
Set surface knot selection mask on/off. (component flag)
surfaceParameterPoint / spp bool ../../../_images/create.gif ../../../_images/query.gif
 
Set surface parameter point selection mask on/off. (component flag)
surfaceRange / sr bool ../../../_images/create.gif ../../../_images/query.gif
 
Set surface range selection mask on/off. (component flag)
surfaceUV / suv bool ../../../_images/create.gif ../../../_images/query.gif
 
Set surface uv selection mask on/off. (component flag)
texture / tx bool ../../../_images/create.gif ../../../_images/query.gif
 
Set texture selection mask on/off. (object flag)
vertex / v bool ../../../_images/create.gif ../../../_images/query.gif
 
Set mesh vertex selection mask on/off. (component flag)

Derived from mel command maya.cmds.selectType

Example:

import pymel.core as pm

pm.selectType( allObjects=True )
pm.selectType( q=True, cv=True )
# Result: False #
pm.selectType( allObjects=True, allComponents=False )

Previous topic

pymel.core.general.selectPriority

Next topic

pymel.core.general.selected

Core Modules

Type Modules

Other Modules

This Page