Skip to main content

Right now, I’m working on a plugin that needs to reset some of the styles on an instance so that they match its mainComponent. Through the UI, we have the option to “reset all overrides”, as well as resetting fills, strokes, etc. However, I don’t see that option in the Plugin API. It would be really helpful if we could add this so that we had a more fine-grained way of resetting instances that matched what the Figma UI is doing!

I could use this on my plugin as well. I have a way to reset the text by matching the original text label on the mainComponent.


Adding more support to this idea. resetOverrides() is extremely limiting since it always resets all overrides. There’s almost no point to knowing the list of overrides if there’s nothing you can do about them individually.


Could we at least expose the list of override options that are in the meatball menu for instances? Similarly to the pasted image, it would be useful to be able to call resetOverrides("fillStyleId").


If I’m missing something, it would be great to know about it. I suppose you could look up the node IDs in the mainComponent, but it seems unnecessarily complex.


image


This would be really helpful for a plugin i am making aswel. I can list specific overrides and which instances they are attached but its useless if i cannot reset individually


Reply