Skip to content

Instantly share code, notes, and snippets.

Last active January 5, 2016 15:06
  • Star 1 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
Save satoyuichi/38b0552b6e8d7ef054bd to your computer and use it in GitHub Desktop.
Blender で毎フレーム更新するようなコード
import bpy
import math
def my_handler(scene):
cf = bpy.context.scene.frame_current
r = (cf * 10)
bpy.context.object.rotation_euler[2] = math.radians(r)
bpy.ops.wm.redraw_timer(type='DRAW_WIN_SWAP', iterations=1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment