Skip to content

Instantly share code, notes, and snippets.

Last active August 22, 2020 09:47
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
# Blender用のボーンに対するこまごました操作
import bpy
D =
# 選択ボーンの回転順を一括変更する
bones = bpy.context.selected_pose_bones
for bone in bones:
bone.rotation_mode = 'XZY'
# 全Driverをリフレッシュする
for oObj in
if oObj.animation_data is not None:
for oDrv in oObj.animation_data.drivers:
oDrv.driver.expression += " "
oDrv.driver.expression = oDrv.driver.expression[:-1]
# print ('%s.%s is driven to %s' % (, oDrv.data_path, oDrv.driver.expression) )
# アニメーションにCyclesモディファイアを追加する
for act in D.actions:
for f in act.fcurves:
for m in f.modifiers:
if (m.type == 'CYCLES'):
m ='CYCLES')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment