What if you want to copy and paste a text back and forward from Blender and your operating system? Blender has limited integration when it comes to the Font objects, and unfortunately none of the workarounds was satisfying for my picky taste.

So, what do you do when you are your own boss and want to use this inexistent functionality in Blender? Well, you just stop doing everything else and hack the hell out of Blender’s code 🙂

Blender Copy and Paste

Back in Blender 2.49 (around 2009) we could copy/paste the text from either the system clipboard or the internal (per object) text buffer. The reason behind this design was to allow for copy/paste of special formatting (e.g., bold, underline, …) when using it in Blender.

Seven years later in the latest Blender (2.76) this functionality (system clipboard) is not even available or exposed to the user. To fix this I unified the old system clipboard and the internal text buffer functionalities. Thus if you copy/paste a text from a font object it will be available in the system clipboard. And if the text was previously created within Blender, you will also get its original formatting.

Oh, did I mention it supports funky unicode characters? 😉

The patch is still under development and waiting for peer review. But it should be ready to merge in master any time soon.

Update: The patch was committed, and it will be part of the upcoming Blender 2.77.

2 Thoughts on “Copy and Paste like a Boss

  1. Adam Earle on February 14, 2016 at 12:00 pm said:

    Wish ho hooOOoooOOO great start! do you have any other plans for text in blender.

    It kinda sucks that you have to give up everything else just to do this. But seriously your kinda an inspiration.

    How did you even get started?

    • dfelinto on February 15, 2016 at 5:25 pm said:

      Hey Adam, I’m pushing Blender into a company’s pipeline, and have to get some things easier to use. Text was one of them.

      In fact I ran into this limitation while preparing a mockup for the new platform. It was easy (and well, fun) for me to tackle it right away, assuming it would benefit other Blender users as well.

      So I’m pretty confident other features will come up along the real development of their system. We’ll see.

Leave a Reply to dfelinto Cancel reply

Your email address will not be published. Required fields are marked *

Post Navigation