Script-Shortcut icon indicating copy to clipboard operation
Script-Shortcut copied to clipboard

Doesn't seem to be fully working for me, but panel and options will load

Open jacobhalton opened this issue 1 year ago • 0 comments

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.

image

When I try to select the panel preset, it gives me an error: image image

I'm on an M1 Mac, Blender 3.5 if that makes a difference

This is the script I'm trying to run: image

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)

jacobhalton avatar May 10 '23 16:05 jacobhalton