To fetch and retrieve the Variable Mode attached to the node Hello. Let me try to explain myself the best i can.
First i have 0 knowledge and background on programming, so excuse me if i don’t refer to things as good as i should.
I built a plugin with the help of chatGTP.
In short this plugin fetches inside your current selection and retrieves all the styles used, the unstyled colors and fonts.
I use it to transfer components between files and reapply the remote styles to their local matching styles.
When they anounced Variables, i wanted to implement it to the plugin.
So far i managed to list the variables bound to a node and list them in the ui.
Then i noticed about the modes, and wanted to retrieve the mode applied to that node, with no look.
I tried to fetch inside the whole variable collection and match the hex color of the variable bounded to the hex color of the different modes, and get the mode name by making a comparison. But this solution is not good because various modes can share t