Skip to main content
Solved

How to Move Cursor to Node ID Using Figma Plugin API?


I’m currently developing a Figma plugin and I’m looking to use the node’s ID to call an API and move the cursor to that specific node. I’ve already implemented a logic to traverse nodes, check against design system rules, and display IDs of nodes that violate the rules in the plugin UI. However, I’m struggling to find information in the API documentation on how to use these IDs to make API calls and move the cursor to the corresponding nodes. I’m reaching out to the community to see if anyone has insights or useful information regarding this matter.

Thank you.

Best answer by tank666

You cannot manipulate the user’s cursor. But you can add nodes to a selection and focus the user’s viewport over that selection.

figma.com
View original
This topic has been closed for comments

3 replies

tank666
  • 4858 replies
  • Answer
  • August 17, 2023

You cannot manipulate the user’s cursor. But you can add nodes to a selection and focus the user’s viewport over that selection.

figma.com

  • Author
  • 1 reply
  • August 18, 2023

Wow… Thank you so much for your reply


  • 0 replies
  • August 22, 2023

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings