CG Python Academy (Free)
Log In
Community
Classroom
Calendar
Members
Map
Leaderboards
About
Log In
3
Kesla Klon
Jan 15 •
❓Questions
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
Like
2
3 comments
3
Acting on Conditions Exercises
CG Python Academy (Free)
skool.com/cgpython
3D artists learning Blender Python.
YouTube
apply for 1-on-1 coaching
908
Members
1
Online
1
Admin
JOIN GROUP
Leaderboard (30-day)
1
Valentyn Porada
+11
2
Ahmad Rheddick
+7
3
Chaitanya Tudu
+7
4
Alfredo Ramirez
+6
5
Gregory Tada
+5
See all leaderboards
Powered by