1
$\begingroup$

How do I remove all shape key drivers from an object. Manually removing every driver would take much to long

$\endgroup$

1 Answer 1

3
$\begingroup$

Select your object, ShiftF4 to open console, paste this code: [b.driver_remove('value') for b in C.active_object.data.shape_keys.key_blocks], Enter, ShiftF5 to return to 3D Viewport. The Properties view will not automatically update, so you may need to move your mouse over the panel with shape keys to see the change.

A slightly more readable version if you want to save it as text and perhaps modify to apply on multiple objects:

import bpy
from bpy import context as C

for b in C.active_object.data.shape_keys.key_blocks:
    b.driver_remove('value')
$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .