Advertisement
metalx1000

Blender 3D rotate object and set keyframes

Feb 27th, 2016
804
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. #Python Script for Blender 3d that rotates currently selected object and sets keyframes
  2. import bpy
  3. for x in range(1,250,10):
  4.   bpy.data.scenes["Scene"].frame_current=x
  5.   bpy.context.object.rotation_euler.x+=1
  6.   bpy.context.object.keyframe_insert(data_path="rotation_euler")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement