Grease Pencil - Scene Output > FIle Format > SVG
There is currently an option to export an image sequence as JPG and PNG, is there an opportunity to export to SVG?
Currently I have to export each frame manually with File > Export > Grease Pencil as SVG
2 Comments
hi, i make this script with ChatGPT to export SVG from GP object, i the same way to do in Export windows:
import bpy import os
#Configuration output_dir = "D:\Proyectos\fondo" # Change this path to the directory where you want to save the SVG files gpencil_object_name = "Gpencil" # Change this to the name of your Grease Pencil object
#Ensure the directory exists if not os.path.exists(output_dir): os.makedirs(output_dir)
#Reference to the Grease Pencil object gpencil = bpy.data.objects.get(gpencil_object_name)
if not gpencil: print("Grease Pencil object not found.") else: # Iterate over the frames of the animation frame_start = bpy.context.scene.frame_start frame_end = bpy.context.scene.frame_end
print("Export completed.")
Are there any recommendations how to export each grease pencil frame as an SVG?