Skip to main content
Question

getStyleConsumersAsync

  • March 27, 2025
  • 0 replies
  • 24 views

Robby_Marston

Hi,

I’m using the plugin API to develop a plugin that shows me which nodes are using my local color styles. The getLocalPaintStylesAsync method works to retrieve the styles. Normally, I would use the consumers property in that response to see the consumers; however, that’s been deprecated. When I attempt to use the getStyleConsumersAsync method instead, it never seems to resolve. It either hangs indefinitely or freezes the app. That said, is there any way I could retrieve a list of consumers of one style at a time? Or perhaps some other approach that actually works?

 

Thanks in advance! 

This topic has been closed for replies.