Generate 8 * 8 (64) cubes in Blender Python

cube.py


import bpy

for x in range(1,9):
	for y in range(1,9):
		bpy.ops.mesh.primitive_cube_add(location=(x*10, y*10, 1))

If you inadvertently generate too much, your PC will crash. Please use it when modeling is troublesome.

Recommended Posts

Generate 8 * 8 (64) cubes in Blender Python
Generate rounded thumbnails in Python
Generate U distribution in Python
Generate QR code in Python
Blender Python API in Houdini (Python 3)
Draw Sine Waves in Blender Python
Generate Jupyter notebook ".ipynb" in Python
Get started with Python in Blender
Python in optimization
CURL in python
Metaprogramming in Python
Python 3.3 in Anaconda
Geocoding in python
Generate AWS-S3 signed (time-limited) URLs in Python
Meta-analysis in Python
Unittest in python
Epoch in Python
Discord in Python
Blender 2.9 Python Extrude extrude
Sudoku in Python
DCI in Python
Automatically generate Python Docstring Comment in Emacs
quicksort in python
nCr in python
N-Gram in Python
Programming in python
Plink in Python
Constant in python
Module to generate word N-gram in Python
To reference environment variables in Python in Blender
Lifegame in Python.
FizzBuzz in Python
StepAIC in Python
Python interpreter in Maya, Houdini, blender, Nuke
N-gram in python
Generate a class from a string in Python
Csv in python
Disassemble in Python
Reflection in Python
Generate C language from S-expressions in Python
Constant in python
nCr in Python.
format in python
Scons in Python3
Puyo Puyo in python
python in virtualenv
PPAP in Python
Quad-tree in Python
Chemistry in Python
Hashable in python
DirectLiNGAM in Python
LiNGAM in Python
Flatten in python
flatten in python
How to generate permutations in Python and C ++
Generate points only in Tokyo using python + shapely
Daily AtCoder # 36 in Python
Clustering text in Python
Implement Enigma in python
Daily AtCoder # 32 in Python
Daily AtCoder # 6 in Python