Skip to content
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

.window_manager.clipboard 65536 characters ? #93

Open
jnschilling opened this issue Feb 18, 2024 · 1 comment
Open

.window_manager.clipboard 65536 characters ? #93

jnschilling opened this issue Feb 18, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@jnschilling
Copy link

Hello, Thanks for the addon and the efforts maintaining it.
I noticed that the copy to clipboard using the addon is limited to 65536 characters (yes I handle very large geometry nodes). I didn't know and can't diagnostic the why of this limitation.
BR, JN

@BrendanParmer
Copy link
Owner

Hi @jnschilling, sorry to hear you're having issues. This is a bit strange, and unfortunately I'm not able to reproduce this. The Blender clipboard is just a Python str, whose size (IIRC) should theoretically should be bound only by the amount of memory available to the interpreter. In script mode it first writes to a StringIO object before copying to the clipboard, but it seems like this should be able to handle more than 65536 characters.

What's your OS? If you could provide a test blend file, that would help me debug this, too.

As a workaround, you can try generating your node group in add-on mode, which writes directly to a file rather than an object in memory. From there you could copy the relevant node group code into your script

@BrendanParmer BrendanParmer added the bug Something isn't working label Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants