View Single Post
 
Reply
Posted 2005-02-15, 12:43 PM in reply to Lenny's post starting "Well...looks like we're all gonna have..."
Well, I'll assume you downloaded Python already, so just fire up a text editor of some sort. Notepad works, though something that has syntax highlighting is preferred, such as Crimson Editor. Python comes with its own editor, but quite frankly it's not very good.

Anyway, the hardest thing I had to learn (coming from C++ and the like) is that indentation matters. So doing this:

Code:
x = 5
if x == 5:
     print "yams"
     print "yams"
else:
     print "what"
     print "what"
That works in a pretty obvious way. Normally you'd need an END IF or brackets to show blocks like that. I indent by habit anyway, but it's odd that it's part of the syntax.

Python scripts can be run either by command line ("C:\wherever\> python c:\what\test.py") or by double-clicking on them in Windows (assuming you let Python have the file extension .py). I like the double-click method because I'm lazy.

...Of course, I haven't played with Blender itself much, mainly because I have no artistic abilities whatsoever. I am able to make a cube at least though. Maybe I'll make a game where you get to watch a cube fall through blank space, because that's the limits of my abilities at this point.
Old
Profile PM WWW Search
BlueCube enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHzBlueCube enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHz
 
 
BlueCube