Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Python Scripting for Blender: With Practical Projects
Role Play
Rating: 4.1 out of 5(774 ratings)
4,438 students

Python Scripting for Blender: With Practical Projects

Learn Python in Blender: custom UI, bpy, automation, and a CSV data-visualization project.
Created byThomas McDonald
Last updated 5/2026
English
ArabicCatalan

What you'll learn

  • Learn 3D Scripting using Python in Blender
  • Create custom UI panels and buttons in Blender.
  • Automate repetitive tasks and optimize workflows.
  • Use Python to generate and modify 3D objects.
  • Animate objects and create custom material setups with Python.
  • Import, extract, and animate data from CSV files.

Coding Exercises

This course includes our updated coding exercises so you can practice your skills as you learn.

See a demo
Image of coding exercise example

Course content

8 sections55 lectures3h 13m total length
  • Introduction3:25

    Master course navigation and playback shortcuts, such as spacebar pause, shift+left/right for speed, left arrow to rewind 5 seconds, and Alt+Tab for app switching, to streamline your blender intro.

  • Where to Get the Free and Open Source Software Blender & the Installation Proces4:21

    discover how to download the latest stable release of blender from blender.org or the Steam, Snap, or Microsoft Store, and complete the standard installation on Windows, macOS, or Linux.

  • Saving Incrementally, Increasing Undo Steps & Navigation S7:34
  • How to Recover Blend Files after Crashes & Auto Saving Files3:04
  • How to Navigate the Blender Interface4:39

    Master Blender navigation to orbit around selected objects or cameras, zoom with middle mouse and alt, pan with shift, and switch perspective or orthographic views.

  • The Versatile Multi-Purpose 3D Cursor Tool7:21
  • The Coordinates System3:28

    Explore Blender’s right-handed Cartesian coordinate system with z up, where vertices, edges, and faces describe 3D mesh geometry, and learn extrusion from a single vertex to build cubes.

  • Python in Blender3:41

    Explore Python in Blender through the scripting layout, including the outliner, data blocks, properties, text, and 3D view, and use the interactive Python console for debugging.

  • Get Your Free Blender Python Shortcut Key Guide0:16
  • The Interactive Python Console6:06
  • The Text Editor2:01

    Explore Blender's text editor to write Python scripts with line numbers, word wrap, syntax highlighting, and cursor highlighting. Create new documents, switch editors, and run scripts with Alt+P.

  • BPY Intro Document0:16
  • Blender Python6:17

    Explore the Blender Python BPY module, importing BPY to access data, context, and ops for scripting objects, cameras, and modifiers in Blender.

  • bpy
  • Order of Operations Intro Document0:20
  • The Order of Operations2:34

    Master the Python order of operations to evaluate expressions accurately, using parentheses, exponentiation, and left-to-right rules for multiplication, division, addition, and subtraction.

  • Order of Operations
  • Basic Data Types Intro Document0:38
  • Data Types in Python2:57

    Master blender python basic data types, including strings, integers, floating points, and booleans. Use type to check types, slice strings, and rename objects with bpy context.

  • Data Types
  • Coding Exercise - Data Types
  • Your First Blender Python Script3:50

    Create your first blender python script that adds a cube, renames it Hello world, uses BPY and context to reference the object, and save as myFirstScript.py in a scripts folder.

  • Error Messages Intro Document0:14
  • Common Errors in Python2:21

    Diagnose common python errors in blender scripting, including name errors from missing bpy import and syntax issues from typos or indentation, using the console to read messages.

  • Error Messages
  • Common Issues9:30

    In this video tutorial we delve into some of the most frequent issues faced by students and users of Blender—ranging from modelling intricacies to key frame snags. By walking you through real-time examples, the lecture aims to equip you with practical solutions to these common stumbling blocks, making your Blender experience smoother and more efficient.


    Doubled-Up Vertices

    Problem: Presence of redundant vertices causing shading, texturing, and other issues.

    Example: Extruding a face but then deciding to inset, leading to overlapping vertices.

    Solution: Utilizing the 'Merge by Distance' function to eliminate extra vertices.


    Loop Cut Issues

    Problem: Loop cuts not behaving as expected.

    Example: Loop cut refuses to wrap around the mesh, usually stops at an N-gon.

    Solution: Using the Knife tool to manually cut through the N-gon.


    Things Disappear

    Problem: Work disappearing when pressing the "1" key.

    Example: Toggling collections on and off inadvertently.

    Solution: Using the 'Control' key to unhide all collections.


    Extruding a Vertex

    Problem: Difficulty extruding a single vertex.

    Example: Single vertex becoming invisible in Edge mode.

    Solution: Switching to Vertex selection mode to extrude properly.


    Limited Zoom

    Problem: Restricted zooming in User Perspective mode.

    Example: Difficulty zooming into third monkey head object.

    Solution: Switching to Orthographic mode or using Fly Mode to bypass restrictions.


    Keyframes

    Problem: Unintended object movements due to Auto-Keying.

    Example: Objects moving or disappearing when the space bar is hit.

    Solution: Checking the status of the Auto-Keying button and toggling it off if needed.


    Key Takeaways:

    Learn the importance of the 'Merge by Distance' function to eliminate doubled-up vertices.

    Gain insights into how to perform loop cuts on N-gons using the Knife tool.

    Discover the functionalities of Blender's different modes to avoid unintended actions like disappearing collections or failed extrusions.

    Grasp how to manage zoom limitations through the use of different view modes.

    Understand the implications of the Auto-Keying feature and how to manage it effectively.

  • Blender Python Scripting Session

Requirements

  • A computer capable of running Blender (Windows, macOS, or Linux).
  • A three-button mouse is recommended for easier navigation.
  • No prior Python or Blender knowledge is required – we cover everything from scratch!

Description

You want Blender to do the boring bits: rename objects, duplicate and place them, build a panel, drive animation from a spreadsheet. This course is Python inside Blender, from the console and text editor, with no prior coding required.

You will use bpy to move the 3D cursor, create and modify meshes, set materials, keyframe animation, and add a custom UI panel. One project reads CSV data (via a spreadsheet such as LibreOffice) and builds an animated visualization.

What we build

  • Add and rename objects from a script

  • Duplicate and position objects

  • A custom UI panel with buttons

  • Automated lights and camera

  • An animated data visualization from CSV

What we use Blender, bpy, the Python console, the text editor, lists, loops, conditionals, f-strings.

Who this is for 3D artists, technical artists, and complete beginners who want Python in a 3D viewport, not in a vacuum.

Who this is not for A general Python computer-science course. Everything here runs inside Blender.

Write a script, press run, watch the viewport change.

What you’ll learn

  • Script in Blender with Python and bpy

  • Create custom UI panels and buttons

  • Generate and modify 3D objects from code

  • Automate lighting, cameras, and keyframe animation

  • Import CSV data and animate a visualization

  • Use variables, loops, conditionals, and f-strings in Blender’s text editor

Requirements

  • A computer that can run Blender (Windows, macOS, or Linux)

  • Three-button mouse recommended

  • No prior Python or Blender required

Who it’s for

  • Beginners with no Blender or Python

  • 3D artists who want to automate repetitive work

  • Technical artists building small Blender tools

Who this course is for:

  • Beginners with no prior experience in Blender or Python
  • 3D artists and animators looking to speed up their workflow
  • Game developers who want to expand their toolset with scripting
  • Technical artists interested in custom Blender automation
  • Complete beginners looking for something new
  • Anyone who wants to learn Python in a creative, practical way