sine.py
import bpy
import math
for n in xrange(360):
x = n
y = math.sin(n * 20 * math.pi / 180.0) * 10
bpy.ops.mesh.primitive_cube_add(location=(x * 10, y * 10, 1))
You can express a sine wave with a cube in 3D space. Please use it to make a 3D stage.
Recommended Posts