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
251 stars 9 forks source link

Support Windows with native PowerShell script and restructure code #8

Closed thanhph111 closed 3 years ago

thanhph111 commented 3 years ago

This PR replaces Pillow library with PowerShell version 5.1 compatible scripts for Windows 10, which pre-installed from Windows 10 version 1607. This PR uses some features only supported by PowerShell version 5.1. From PowerShell version 6, the clipboard only works with text so this add-on won't work on machines that have no PowerShell 5.1.

This approach has 2 advantages:

I have also migrated the code to separate packages based on its support platform for ease of future maintenance.