Getting instance main component library name

Hello there !
I am trying to verify where a component comes from (to detect legacy libraries). Is there a way to get a library name or id from an InstanceNode. I try to get it from the mainComponent.parent but I’m stuck at the componentSet and can’t get to the library document.
Thank you !

No there isn’t.

The only way would be to have the user of the plugin go to the old library file, scan all components in there, save them to the plugin, then open another file and check if component key is in the lib you saved or not.

1 Like

Thanks for the quick answer. I might go with a “description” search (like “deprecated”) then. A bit of work to set it up, but it should work.