Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """
- You dont need to use this. this is functionality that is already built into blender
- Mesh Data > Shape Keys > Down arow under the minus icon > Delet all shape keys
- """
- import bpy
- def remove_all_blend_shapes():
- # Get the active object
- active_object = bpy.context.active_object
- # Check if an object is selected
- if active_object:
- # Remove all shape keys
- bpy.ops.object.shape_key_remove(all=True)
- print("All blend shapes removed.")
- else:
- print("Error: No object selected.")
- # Call the function to remove all blend shapes
- remove_all_blend_shapes()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement