Advertisement
Dieton

Remove Delet All Mesh Data Blend Shape keys.py

Mar 3rd, 2024 (edited)
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.61 KB | None | 0 0
  1. """
  2. You dont need to use this. this is functionality that is already built into blender
  3. Mesh Data > Shape Keys > Down arow under the minus icon > Delet all shape keys
  4.  
  5. """
  6. import bpy
  7.  
  8. def remove_all_blend_shapes():
  9.     # Get the active object
  10.     active_object = bpy.context.active_object
  11.  
  12.     # Check if an object is selected
  13.     if active_object:
  14.         # Remove all shape keys
  15.         bpy.ops.object.shape_key_remove(all=True)
  16.  
  17.         print("All blend shapes removed.")
  18.     else:
  19.         print("Error: No object selected.")
  20.  
  21. # Call the function to remove all blend shapes
  22. remove_all_blend_shapes()
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement