Beginner question
Eric Brunel
eric.brunel at pragmadev.com
Thu May 16 05:41:46 EDT 2002
Mats Holmberg wrote:
> Hi
>
> I'd mainly like to use python for scripting within Blender. How do I use
> the math module? this is an example of what I've tried:
>
>>>>import math
>>>>cos(10)
> Traceback (most recent call last):
> File "<pyshell#4>", line 1, in ?
> cos(10)
> NameError: name 'cos' is not defined
Please (re)read carefully the beginning of chapter 6 ("Modules") of the
Python tutorial (http://www.python.org/doc/current/tut/tut.html) and your
mistake should be quite obvious...
HTH!
--
- Eric Brunel <eric.brunel at pragmadev.com> -
PragmaDev : Real Time Software Development Tools - http://www.pragmadev.com
More information about the Python-list
mailing list