Python Script for Armature Scale - I was wondering what the python script the following sequence would look like. I'd like to be able to run the code in the text editor instead of manually doing it every time I need a new animation.
For a selected armature &gt; clear all keyframes for scale x,y,z &gt; and change the scale values to .011? In order to make sure that the scale is .011 through the whole animation.
Thank you very much for your time, I'd really appreciate the help!
Try this. Select the armature before running it (but the mode shouldn't matter this time).
import bpy
ob = bpy.context.active_object
assert ob.type == 'ARMATURE'
assert ob.animation_data and ob.animation_data.action
action = ob.animation_data.action
for fc in [*action.fcurves]:
    if fc.data_path == &quot;scale&quot;:
        action.fcurves.remove(fc)
ob.scale = [0.011] * 3