Script-Shortcut
Script-Shortcut copied to clipboard
Doesn't seem to be fully working for me, but panel and options will load
This seems like an amazing addon, but it's giving me some errors
When I load a script, it doesn't seem to do anything if I click the button. This script works if I run it from the regular scripts panel.
When I try to select the panel preset, it gives me an error:
I'm on an M1 Mac, Blender 3.5 if that makes a difference
This is the script I'm trying to run:
import bpy
# Replace "Gpencil" with the name of your Grease Pencil object
gpencil = bpy.data.objects["GP_Template"]
# Copy the Grease Pencil object
gpencil_copy = gpencil.copy()
gpencil_copy.data = gpencil.data.copy()
# Set the location of the copied Grease Pencil object to the 3D cursor location
gpencil_copy.location = bpy.context.scene.cursor.location
# Paste the copied Grease Pencil object
bpy.context.scene.collection.objects.link(gpencil_copy)