Skip to content

.window_manager.clipboard 65536 characters ? #93

@jnschilling

Description

@jnschilling

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

Activity

BrendanParmer

BrendanParmer commented on Mar 8, 2024

@BrendanParmer
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @jnschilling@BrendanParmer

        Issue actions

          .window_manager.clipboard 65536 characters ? · Issue #93 · BrendanParmer/NodeToPython