Guest User

Untitled

a guest
Mar 20th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. import bpy
  2.  
  3. scene = bpy.context.scene
  4. obj = scene.objects['Cube']
  5.  
  6. y_locations = [
  7. 10,
  8. 13,
  9. 22,
  10. ]
  11.  
  12. current_frame = 0
  13. for y_location in y_locations:
  14. obj.location[1] = y_location
  15. obj.keyframe_insert(
  16. data_path="location", frame=current_frame)
  17.  
  18. current_frame += 20
Add Comment
Please, Sign In to add comment