• Help Home
  • English (US)
    1. English (US)
    2. 简体中文
    3. 日本語
    • Maya Developer Help Center
      • About The Maya devkit
      • Maya devkit requirements
      • Open Source Components
      • What's New / What's Changed?
      • Setting up your build environment
      • Setting up CMake to build your plug-ins
      • Example Applications and Plug-ins
      • Running Standalone Applications
      • Loading and Unloading Plug-ins
      • Maya API Basics
      • A First Maya command plug-in
      • Distributing Maya Plug-ins
      • Selecting with the API
        • Overview of selecting with the API
        • MGlobal::setActiveSelectionList()
        • MSelectionList
        • MItSelectionList
        • setObject() method
        • MFn::Type enumeration
        • MGlobal::selectByName()
      • Command plug-ins
      • DAG Hierarchy
      • Dependency graph plug-ins
      • Manipulators
      • Shapes
      • Writing a Software Shading Node
      • Writing a Hardware Shading Node
      • Writing a Custom Transform Node
      • Writing a Deformer Node
      • Writing File Translators
      • Viewport 2.0 API
      • Custom evaluator overview
      • Polygon API
      • Working with Qt
      • Maya Python API
      • Maya .NET API
      • Technical Notes
      • Appendices
    • Maya API Reference
    • Technical Documentation
    Share
    • Email
    • Facebook
    • Twitter
    • LinkedIn

    Selecting with the API

    This section illustrates how to use the Maya API to select and query items in the scene.

    For selection in Viewport 2.0, see Porting Selection from Legacy Default Viewport to Viewport 2.0.

    Pages in this section
    • Overview of selecting with the API
    • MGlobal::setActiveSelectionList()
    • MSelectionList
    • MItSelectionList
    • setObject() method
    • MFn::Type enumeration
    • MGlobal::selectByName()

    Was this information helpful?

    Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. Please see the Autodesk Creative Commons FAQ for more information.

    • Privacy Statement
    • Legal Notices & Trademarks
    • Report Noncompliance
    • © 2025 Autodesk Inc. All rights reserved