BrendanParmer / NodeToPython

Convert Blender node groups to a Python add-on
MIT License
247 stars 23 forks source link

[suggestion] Add "copy to clipboard" button #131

Open javl opened 1 month ago

javl commented 1 month ago

Thanks for this addon, it's extremely useful. However, I feel there is some strange UX behavior that took me a second to figure out:

I was looking for a button to export the data and it took some trial and error to realize you need to select your geometry nodes element from the dropdown to actually export it. IMHO this goes against how dropdowns are used pretty much anywhere else. It's especially counter intuitive when there is only a single GN element in your project, which means it is already 'selected'. image

Maybe it would make more sense to select the element from the dropdown, and add a simple "copy to clipboard" button underneath the dropdown to trigger the actual copying? image

To me it would even make more sense to remove the dropdown alltogether, and just have a "copy to clipboard" button that exports the currently open GN element, but I can imagine you've added the dropdown to be able to quickly export multiple GN in sequence.

BrendanParmer commented 1 month ago

Hey @javl, thanks for the suggestion!

I agree the UX needs some improvement. I'm expecting NTP v3.3 to support exporting multiple node groups at once (#122). This will probably look similar to how material slots are added in the Materials Tab, but I'm still playing around with it. Along with there'll be a separate button, which actually runs the conversion process for each selected node group. In script mode this'll probably say "Copy to clipboard", and addon mode "Export to Addon"