Pasting of SVG curves from copy buffer into Blender

I’d love Blender to recognize copied SVG curves in the copy buffer, and paste them into the current scene.

Software like Inkscape and MoI 3D features copying of SVG curves to the copy buffer. It would be very flexible and convenient if you could edit curves in external editors, and simply copy and paste those into Blender.

Now you need to save to a file from the external editor, then go to File ➔ Import ➔ SVG each time you want to port one or more curves from an external vector editor.

This would also benefit creators using Grease Pencil.

If you’re with me on this, please upvote the feature request, many thanks…

7 Likes

Hi there,
for a quick and dirty solution you could add a new operator and keymap (e.g. Ctrl + Shift + V) in the __init__.py file from the “io_curve_svg” addon (under Blender 4.2 → 4.2 → scripts → addons_core) and update the “SVGLoader” class in the import_svg.py file to parse a string rather than a file, if the given “filepath” isn’t really a filepath.

The updated init and import_svg files:
init.py|attachment (2.7 KB)
import_svg.py (52.1 KB)

Just replace them in the io_curve_svg folder. I know it’s dirty but it works :man_shrugging:

2 Likes

Thanks! :+1:

It’s late over here right now, but I will check this out tomorrow!

1 Like