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