Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Ira Krakow's Blender 2.50 Python Part 1 (Environment)

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
13,827
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Feb 23, 2010

Discuss this video at: http://forum.irakrakow.com/viewtopic.php?f=15&t=238

The purpose of this video is to give you an idea of the Python scripting environment in the new Blender 2.5, as well as to give you places to start if you either don't know Python at all, or are new to programming. Don't be afraid if you are not a programmer. Python is not a difficult language to learn. This tutorial is based on Blender Labrat (mfoxdogg) tour of the Python setup in Blender 2.5, and the Blender 2.5 Python API introduction at blender.org. I based this tutorial on Blender 2.5 Alpha 1, released in mid-February, 2010.

The basic document is Blender 2.6 Python API (the Application Programming Interface for Blender) document: http://www.blender.org/documentation/250PythonDoc/contents.html
The Wiki page to start learning te Blender 2.5 Python API is at: http://wiki.blender.org/index.php/Dev:2.5/Py/API/Intro

To learn Python itself, start at http://www.python.org and click the Tutorials tab. You can do your learning entirely inside Blender, using the new Python 3.1 console that's a part of Blender 2.5.

This API is undergoing modification. You're looking at the version as of February 15, 2010. The basic module is bpy, which is a totally different API than Blender 2.4x.
The functions are grouped into different types. For example, bpy.ops documents the Blender Python operators. Under Mesh for example, you can see the paramters for anything you can do with a mesh, in alphabetical order.

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (irakrakow)

  • wow... "index 3 out of range" - in c++ you usually modify random memory without the compiler saying anything, and if you're lucky, you get a slap from the compiler called seg fault, which doesn't really help.

  • @bobsonenzo It's nice to find a polite interpreter with clear error messages.

  • Epic tutorial. Really helps.

    Why is there HTML in the description?

  • @theadamgaskins This is a link to the post in my Blender 3D Forum where you can discuss my tutorial.

  • how different is blender 2.5 to 2.49b?

  • @Soksimaniyasuka The user interface is totally different. So is the version of Python. Most of the things you can do in 2.49b are there, but in a different place with possibly different keystrokes.

see all

All Comments (31)

Sign In or Sign Up now to post a comment!
  • @TrinityGamer nice, i've been doing it on and off for over a month now, im pretty near excercise 40 i guess. starting to get very interesting :) some day i wish to be a good game programmer.

  • @mar109us thanks, i found it a while ago, and have to agree, it is pretty good :)

  • @TrinityGamer learnpythonthehardway (dot) org/book/ex1.html this is the best dude

  • you know, with all do respect, i just love how you start off by saying that this tutorial will help people who have no programing knowledge what so ever, then turn around and tell us to go somewhere else to learn the python coding, and then started to use terms that those of us that have no idea what we are doing couldn't possibly understand.

    this didn't help me at all, just confused me more.

  • thank you for this tutorial it was really helpfull

  • @LiteGamerz g++/gcc does. Is that not used any more?

  • @bobsonenzo Maybe 20 years ago?

  • Wow, so I could:

    Make a script that will set up a ready made smoke simulation (unbaked).

    Upload it to Mediaifre

    Have people download it and put into Blender and have a ready made smoke simulation ready?

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more