Acting on Conditions Exercises
Why did you use Toggle in 1 exercise instead of using % operator?
for i in range(10):
if i % 2 == 0:
bpy.ops.mesh.primitive_cube_add()
else:
bpy.ops.mesh.primitive_uv_sphere_add()
bpy.context.active_object.location.y = i * 3
2
3 comments
Kesla Klon
3
Acting on Conditions Exercises
CG Python Academy (Free)
skool.com/cgpython
3D artists learning Blender Python.
Leaderboard (30-day)
Powered by