- ✕This summary was generated using AI based on multiple online sources. To view the original source information, use the "Learn more" links.
Blender’s Python API (bpy) allows you to create, modify, and automate almost anything you can do in the UI — including generating objects, animations, and custom tools. You can run scripts directly inside Blender or from the command line.
Setting Up
Open Blender and switch to the Scripting workspace.
In the Text Editor, create a new script or open an existing .py file.
You can also use the Python Console for quick testing with auto-completion.
Creating Objects via Python
Here’s an example that generates a cube and applies transformations:
import bpy# Delete all existing objectsbpy.ops.object.select_all(action='SELECT')bpy.ops.object.delete(use_global=False)# Add a cubebpy.ops.mesh.primitive_cube_add(size=2, location=(0, 0, 0))cube = bpy.context.active_objectcube.name = "MyCube"# Move and scale the cubecube.location.z = 1cube.scale = (1.5, 1.5, 1.5)# Add a materialmat = bpy.data.materials.new(name="MyMaterial")mat.diffuse_color = (0.2, 0.6, 0.8, 1) # RGBAcube.data.materials.append(mat)Copied!✕Copy 【2026最新】コピペ可能!Blenderによる3DモデリングをPython ...
- Pythonを使ったBlender自動化の基本操作を7つ取り上げて解説してきます。 「Pythonを使ってBlenderを自動化する際の準備」の項目まで準備ができていれば、以下の項目はすべてコピペで実行することが可能です。Blender初心者の方や、Pythonに不慣れな方もぜひ手元の環境で実行してみてください。 基本操作の紹介の最後で、これらの基本操作を組み合わせて実行できる自動化処理の例も掲 …
Blender Python API Guide for 3D Automation - PyTutorial
Jan 30, 2026 · Learn how to use the Blender Python API to automate 3D modeling, animation, and rendering tasks with practical Python scripting examples.
Using Python in Blender: For Beginners – Talstra Net
May 7, 2024 · Learn how to use Python to automate and customize your 3D projects in Blender. This tutorial covers the basics of Blender's Python API, …
Learn Blender Python - Canopy Games
Jun 30, 2025 · Familiarize yourself with Blender’s interface and core functionality. Understand the basics of Python scripting within Blender. Learn to write simple …
Blender & Python Scripting – Step-by-Step Guide
In this course, you will learn Blender scripting with Python. You'll start by learning the basics of Python programming, setting up Blender, and understanding the …
Beginner Blender Python Scripting Practice - YouTube
Beginner Blender Python Scripting Practice CG Python · Course 38 videos Last updated on Feb 7, 2025
Mastering Blender Python: Unleashing the Power of Scripting ...
Jan 29, 2025 · Whether you're a beginner looking to streamline your workflow or an experienced developer aiming to build advanced add-ons, understanding Blender Python is a valuable skill. This …
Blender API basics - Introduction to Scientific …
Blender embeds a Python interpreter, which is used for multiple tasks. It is a central feature of Blender, as large parts of the user interface are set up and controlled …
Python in Blender: 3D Scripting & Automation for 2025
<p>Welcome to *Master Python for Blender: 3D Scripting & Automation 2025* – your ultimate guide to scripting, automating workflows, and creating tools in …
- People also ask