Skip to main content
Question

Store binary data in plugin

  • November 28, 2021
  • 1 reply
  • 775 views

LeonRadley

I’m building a plugin where the user works with 3d models.
But because I want to be able to go back and edit the scene, I need to be able to store the original 3d model.

The models are going to range between 5-50mb
Which is quite a lot, but it would make the editing experience much better.

Is there a limit to how much I can store using setPluginData?

The only other solution I see is that I have to build a backend where I store the 3d models.
but that isn’t very scalable and does not support offline work.

Any suggestions on how to tackle this?

1 reply

Gleb
  • Power Member
  • 4706 replies
  • November 29, 2021
  1. You can store as much data as you want in setPlugiunData, but note that it would be loaded every time the file is opened and 50mb would be a rather significant addition to the file weight.

  2. Storing this data on your server is a good option. Regarding offline: Figma doesn’t support offline work either so that’s not a problem. You can’t open plugins offline (at least the ones you haven’t opened before you went offline).


Reply


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