CG Python Academy
Log In
Community
Classroom
Calendar
Members
Map
Leaderboards
About
Log In
3
Kesla Klon
Jan '25 •
❓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
skool.com/cgpython
3D artists learning Blender Python.
YouTube
1-on-1 coaching/support
1.1k
Members
1
Online
1
Admin
JOIN GROUP
Leaderboard (30-day)
1
Abdul Fahim Munaf
+12
2
Alema Douglas
+4
3
Виктор Руф
+3
4
Christian Coppes
+2
5
Saurav Rayal
+2
See all leaderboards
Powered by