Can I use the custom property located in the n panel - tool - workspace to create a button that runs a python command?
I am attemping to select a certain object and clear its shapekeys. I have the script working.
bpy.context.view_layer.objects.active = bpy.context.scene.objects[‘Cube’]
bpy.ops.object.shape_key_clear()
Is there a way to create a button on the n panel to do this? I