View the plugin starters →
Learn Figma DevelopmentAboutAboutContact ↗Contact ↗ (opens in a new tab)
GitHubGitHub (opens in a new tab)
  • Intro
  • Getting started

    • Directory Structure
    • Open Source Examples
    • Starters

    • Create a Circle
    • Create a Frame
    • Create a Line
    • Create a Rectangle
    • Create an Arrow
    • Is Top Level Frame
    • Clone Figma Layer Node
    • Get All Selected
    • Go to Specific Layers
    • Rename Layer
    • Resize Plugin
    • Using Local Storage

    • Figma Color Handling
Question? Give us feedback → (opens in a new tab)Edit this page
How to
Get All Selected

Get all selected in Figma document

code.js
// selection is an array of figma nodes
const { selection } = figma.currentPage;
 
// check to the see total selected
const selectionLength = selection.length;
Clone Figma Layer NodeGo to Specific Layers

Figma Plugin Development