-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve clipboard operation speed on Windows #32
Comments
Amazing, that's a new approach that I haven't thought about. The script basically uses a shared library of Windows to access to OS APIs and then works with clipboard using them. I wonder if there's a way to do the same on macOS, a quick search brings me to nowhere. |
For MacOS, there must be some official documentation about how a software is supposed to exchange clipboard data? (like there is for windows) |
On macOS this is done through the NSPasteboard https://developer.apple.com/documentation/appkit/nspasteboard which is what the |
In my import addon , I use ctype to improve import speed. It is much faster(about 1ms-) than calling the shell (0.7s). But there is still some encode problem with it |
Update: Transparency works now. I've added support for Bitmaps and PNG (both copying and pasting) which is most of what we'll need. The current hurdles are integrating it with blender. The way I've used ctypes doesn't seem to work through blender, will need to figure that out. |
It's done! Sorry if I've not followed any formatting conventions or for the poor structure of the clipette module. I just don't think I properly understand those things yet. |
Wow, amazing! This will be a significant upgrade. I'll take a look this weekend. |
I'm working on a python utility to interact with the windows clipboard. It doesn't depend on 3rd party utilities and should be much faster and more flexible than our current approach.
The module (clipette) only supports RGB bitmap images now but I'm slowly working on transparency and supporting more formats. After it's good enough, we can work on integrating it with ImagePaste.
What do you think?
The text was updated successfully, but these errors were encountered: