Blender: For vs. While | Scripting for Artists

For vs. While | Scripting for Artists
Loops! Python has multiple ways to loop. In this chapter of Scripting for Artists, Sybren explains how to choose between ’for’ and ’while’ loops.

– For and While side-by-side: 00:34
– Subdividing until there are enough vertices: 1:44
– Preventing infinite loops: 05:42
– Converting the While to a For: 7:04

More Scripting for Artists at https://cloud.blender.org/p/scripting-for-artists/

Support core Blender development – https://fund.blender.org

View on YouTube

Join the Discussion

Share your thoughts, ask a question, or tell us what you learned. Your first comment is reviewed before it appears. Once approved, future comments using the same name and email can appear directly, subject to spam checks.

Leave a Reply

Your email address will not be published. Required fields are marked *

Fix the Blender logo

Drag the loose piece into the missing part. A close fit is enough.

Loading verification…

Keyboard: arrows to move, Shift for fine adjustment, Enter to check. Verification only; movement is not stored. Logo: Blender.