July 15, 2011

filling clipboard in blender 2.5x (os independant)

i was shocked, amazed, confounded. and then i got over it :)

bpy.context.window_manager.clipboard = "some number"

this stores the string literal "some number" in your os clip board, can be used anywhere. (theoretically, but i only tried on linux)