Skip to content

Instantly share code, notes, and snippets.

@nabesakarenders
Created January 3, 2024 15:46
Show Gist options
  • Save nabesakarenders/d2bf1c5a5f30b3c248e626e837a92f56 to your computer and use it in GitHub Desktop.
Save nabesakarenders/d2bf1c5a5f30b3c248e626e837a92f56 to your computer and use it in GitHub Desktop.
import bpy
context = bpy.context
if context.active_object:
obj = context.active_object
if obj.data.shape_keys:
for shape_key in obj.data.shape_keys.key_blocks:
shape_key.mute = True
else:
self.report({'ERROR'}, "The active object has no shapekeys.")
else:
self.report({'ERROR'}, "Please select an object before running the script.")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment