Created
January 3, 2024 15:46
-
-
Save nabesakarenders/d2bf1c5a5f30b3c248e626e837a92f56 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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