Skip to main content
Question

How to read csv/json and passing to figma plugin

  • February 6, 2023
  • 1 reply
  • 1155 views

Nidhin_Kuttikkattu_Rajeevan

Dear All

I have a sample figma as below

I am trying to export each of them individually as a png.

So for example,

This will show only main frame, red rectangle container and rect rectangle only and I can export the image now.

I do this using a plugin I found online in github

GitHub

It is working fine.

What I wish to add is that, this “hide other layers”, and “show a specific layer” logic I need to read from a csv file(or json).

I am using
a) figma desktop
b) npm 6.14.15
c) typescript Version 4.9.5

I wish to have a figma UI where I can browse a csv file/json file from my laptop drive and based on the rules, iterate rules to hide and show different combinations to download png/svg. I am not expecting a full logic reply in this thread 🙂 But, wish to know how can I import a csv/json.

@Gleb any advice?

thanks

This topic has been closed for comments

1 reply

tank666
  • 4863 replies
  • February 6, 2023

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