Search found 97 matches

by kitsu
Fri Jun 11, 2004 11:03 pm
Forum: Rendering
Topic: shaders: bytecode or native?
Replies: 1
Views: 1385

Ummm, I would like to see Blender shaders implimented as a python module... Blender.Shader.New('inverse blinn') -> Blender shader object Basicly just use python code as a front-end to Blenders internal shader code. The shader functionality could be writen in C, and python used as a way to get data i...
by kitsu
Fri Jun 11, 2004 8:07 pm
Forum: Python
Topic: Development question
Replies: 19
Views: 2887

Quote: > Ok discourging words ,. Can python draw a vertice at the very least ? > I was hopeing that I could use it to make a few large things. Like I said the API doc is very useful. Look under Blender.org -> documentation -> Blender 2.33 Python API reference -> NMesh This is the module used to cont...
by kitsu
Fri Jun 11, 2004 7:20 am
Forum: Python
Topic: Rotation Help
Replies: 2
Views: 1552

This works for me: from Blender import * vec = Mathutils.Vector([3,2,1]) mat = Mathutils.RotationMatrix(90,3,'x') print "Vector is: " + str(vec) + ".\n" rot_vec = Mathutils.VecMultMat(vec, mat) print "Rotated vector is: " + str(rot_vec) + ".\n" Output is: Vector is: [3.0000, 2.0000, 1.0000]. Rotated...
by kitsu
Fri Jun 11, 2004 6:53 am
Forum: Python
Topic: Development question
Replies: 19
Views: 2887

If you can write a partical system then you can write a partical system in python. The python API provides access to most of Blender's existing functionality, and is also a complete programming language besides. The main limit is that you can't change Blenders existing behavior. For instance you can...
by kitsu
Mon Jun 07, 2004 3:35 am
Forum: Python
Topic: None returned by mathutils.vector methods
Replies: 5
Views: 1683

K, downloading...
by kitsu
Sun Jun 06, 2004 9:03 pm
Forum: Python
Topic: None returned by mathutils.vector methods
Replies: 5
Views: 1683

Right! I just expected to get a new vector back... The documentation is a little weak on the Mathutils module: normalize() Normalize the vector. ------------------------------------------------------------------------------------------------------- Of course that does imply that the operation is don...
by kitsu
Sun Jun 06, 2004 8:19 am
Forum: Python
Topic: None returned by mathutils.vector methods
Replies: 5
Views: 1683

None returned by mathutils.vector methods

I just downloaded the new 2.33 api and was playing with some of the new classes/methods and found that the vector methods don't return anything. code: from Blender import * vec = Mathutils.Vector([0,25,0]) print vec print vec.length print vec.normalize() output: [0,25,0] 25 None I also get None from...