b-init / ImagePaste

A simple Blender addon to grab images from your clipboard and paste as a reference image in viewport or onto the image editor.
GNU General Public License v3.0
246 stars 9 forks source link

Support X11 clipboard on Linux platform #4

Closed thanhph111 closed 3 years ago

thanhph111 commented 3 years ago

I try to minimize the changes as much as possible.

I added xcip to support X11 clipboard on Linux system (you can refer to 353f34b). I tested on Ubuntu 20.04 and Blender 2.83 LTS, need further testing on other Linux distros and Blender versions.

I also see some changes I can contribute to the repo:

I find the add-on idea very useful and I'd like to make it grow. Tell me how much I can do.

https://user-images.githubusercontent.com/60842560/121064816-3c24f480-c7f2-11eb-9d33-7e15d0f143e8.mp4

b-init commented 3 years ago

Amazing! That's perfect. I"ll merge and update master soon. And MacOS has been a challenge, as I don't have access to any Mac device whatsoever, but PIL should work for Macs, for the most part. Thanks a lot for the contribution!

thanhph111 commented 3 years ago

Glad it could help. I'll try to do more in the next PRs.