__author__ = 'thoth'
import bpy
def mission1(obj):
if obj.animation_data is None or obj.animation_data.action is None:
return
action = obj.animation_data.action
for fc in action.fcurves:
print(fc.data_path)
for mod in fc.modifiers:
if mod.type == 'CYCLES':
fc.modifiers.remove(mod)
for obj in bpy.context.selected_objects:
mission1(obj)
bpy.context.scene.update()
|
Blender python API quick-start
Syntax highlighting by Pygments.