Blender 自学笔记
Blender 自学笔记
制作一个能够匀速上下移动的正方体
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import bpy
bpy.ops.mesh.primitive_cube_add()
cube = bpy.context.active_object
cube.name='MyCube'
cube.keyframe_insert('location', frame=1)
cube.location.z = 5
cube.keyframe_insert('location' , frame=90)
cube.location.z = 0
cube.keyframe_insert('location' , frame=180)
This post is licensed under CC BY 4.0 by the author.