Skip to content

Conversation

@thanhph111
Copy link
Collaborator

No description provided.

b-init and others added 3 commits September 28, 2022 16:57
This is much faster. Basically instant.

Ditched support for bitmap in `push` because blender doesn't completely support bitmaps and I think we don't need it anyways.
@b-init
Copy link
Owner

b-init commented Oct 1, 2022

Here are some documentation and resources I used while making clipette:

win32 clipboard functions
win32 memory management functions
CF_HDROP format
ctypes wintypes reference
ctypes docs
bitmap image file structure

This is a very crude way of using the clipboard and python doesn't know what's going on when dealing with these win32 modules so error management might end up being a challenge. If any of the win32 functions spit any error, we must use GetLastError to access it but I haven't implemented that so far.

Also, if we use open_clilpboard() and not close it, it'll make the clipboard unusable for any other program. So we need to be more careful with that.

to prevent exiting without closing clipboard
• `image.save()` doesn't consider the updated format (bug?) so we're stuck with `save_render()` which uses render settings and would transform image accordingly (often set to 'Filmic' colorspace) which is unwanted during conversion. Fixed that by settings render settings to standard values temporarily. Fixes #47
• render is saved in `get_save_directory()` instead of `tempdir`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants