Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import bpy
- scene = bpy.context.scene
- obj = scene.objects['Cube']
- y_locations = [
- 10,
- 13,
- 22,
- ]
- current_frame = 0
- for y_location in y_locations:
- obj.location[1] = y_location
- obj.keyframe_insert(
- data_path="location", frame=current_frame)
- current_frame += 20
Add Comment
Please, Sign In to add comment