I can’t find a native way to copy and paste to and from the clipboard in bpy.
The method needs to be cross-platform so that it will work on all systems.
I’ve tried out the following :http://coffeeghost.net/2010/10/09/pyperclip-a-cross-platform-clipboard-module-for-python/
I’ve only tested it on Windows, but sometimes it just stops working, even if I shutdown blender, restart it, and then re-start my script which uses the module. I’m not sure if that happens because I reload my script at least 20 times an hour when I’m testing things.
Also, using ‘pyperclip’ means users would have to all install it in the modules folder.
Is there a better way?